package com.xoa.service.partyMember.impl;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ibatis.common.resources.Resources;
import com.xoa.dao.WFE.WFEFlowTypeModelMapper;
import com.xoa.dao.WFE.WFEFormTypeMapper;
import com.xoa.dao.common.SysCodeMapper;
import com.xoa.dao.common.SysParaMapper;
import com.xoa.dao.department.DepartmentMapper;
import com.xoa.dao.duties.DutiesManagementMapper;
import com.xoa.dao.party.OrgDepartmentMapper;
import com.xoa.dao.party.OrgPartyMemberMapper;
import com.xoa.dao.partyMember.PartyMemberMapper;
import com.xoa.dao.users.UsersMapper;
import com.xoa.dao.work.WorkMapper;
import com.xoa.dao.workflow.*;
import com.xoa.model.common.SysCode;
import com.xoa.model.common.SysPara;
import com.xoa.model.department.Department;
import com.xoa.model.party.OrgDepartmentWithBLOBs;
import com.xoa.model.party.OrgPartyMember;
import com.xoa.model.party.OrgPartyMemberExample;
import com.xoa.model.partyMember.PartyMemberWithBLOBs;
import com.xoa.model.users.Users;
import com.xoa.model.workflow.*;
import com.xoa.service.WFE.WFELog.WFELog;
import com.xoa.service.WFE.WFERunner.WFEFlowRunInfo;
import com.xoa.service.partyMember.PartyMemberService;
import com.xoa.service.workflow.flowtype.FlowTypeService;
import com.xoa.util.*;
import com.xoa.util.common.StringUtils;
import com.xoa.util.common.log.FileUtils;
import com.xoa.util.common.session.SessionUtils;
import com.xoa.util.common.wrapper.BaseWrapper;
import com.xoa.util.dataSource.Verification;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.jsoup.nodes.Document;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.annotation.Resource;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import java.text.SimpleDateFormat;
import java.util.*;

@Service
public class PartyMemberServiceImpl implements PartyMemberService {
    @Autowired
    private FlowSortMapper flowSortMapper;
    @Autowired
    private FlowAssignMapper flowAssignMapper;
    @Autowired
    private FlowRunMapper flowRunMapper;
    @Autowired
    private FlowRunPrcsMapper flowRunPrcsMapper;
    @Autowired
    private FlowProcessMapper processMapper;
    @Autowired
    private WFELog wfeLog;

    @Autowired
    private FlowTypeModelMapper flowTypeModelMapper;

    @Autowired
    private SysParaMapper sysParaMapper;

    @Resource
    PartyMemberMapper partyMemberMapper;

    @Resource
    SysCodeMapper sysCodeMapper;

    @Autowired
    private WFEFlowRunInfo wfeFlowRunInfo;

    @Resource
    WorkMapper workMapper;

    @Autowired
    private WFEFormTypeMapper wfeFormTypeMapper;
    @Autowired
    private UsersMapper usersMapper;
    @Autowired
    private DutiesManagementMapper dutiesManagementMapper;

    @Autowired
    private OrgPartyMemberMapper orgPartyMemberMapper;

    @Override
    public Map getSysPara() {
        SysPara sysPara = sysParaMapper.querySysPara("SET_PARTY_FLOW");
        Map map = new HashMap();
        if (sysPara != null && sysPara.getParaValue() != null && !"".equals(sysPara.getParaValue())) {
            map = JSON.parseObject(sysPara.getParaValue(), Map.class);
        }
        return map;
    }

    /*
     * 0 -2.1 入党申请人
     * 2.2-3.1 积极分子
     * 3.2-4 发展对象
     *  5 预备党员
     *
     */
    @Override
    public ToJson<PartyMemberWithBLOBs> selectByPhase(Integer phase, Integer page, Integer limit) {
        ToJson<PartyMemberWithBLOBs> toJson = new ToJson(1, "err");
        try {
            Map map = new HashMap();
            List<PartyMemberWithBLOBs> partyMemberWithBLOBs = new ArrayList();
            if (phase == 1) {//0,1,2.1都属于入党申请人
                partyMemberWithBLOBs = partyMemberMapper.selectCaseOne(1);
            } else if (phase == 2) {//2.2-3.1 积极分子
                partyMemberWithBLOBs = partyMemberMapper.selectCaseOne(2);
            } else if (phase == 3) {//3.2-4.1 发展对象
                partyMemberWithBLOBs = partyMemberMapper.selectCaseOne(3);
            } else if (phase == 6) {
                partyMemberWithBLOBs = partyMemberMapper.selectByPhase(phase);
            } else {
                toJson.setMsg("参数错误");
                return toJson;
            }
            for (PartyMemberWithBLOBs partyMember :
                    partyMemberWithBLOBs) {
                Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                partyMember.setDeptName(department.getDeptName());
                OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
            }
            if (partyMemberWithBLOBs.size() > 0) {
                List list = getPageList(page, limit, partyMemberWithBLOBs);
                toJson.setTotleNum(partyMemberWithBLOBs.size());
                toJson.setObj(list);
                toJson.setFlag(0);
                toJson.setMsg("true");
            } else {
                toJson.setMsg("没有数据");
            }
        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg(e.getMessage());
        }
        return toJson;
    }

    @Override
    public ToJson<PartyMemberWithBLOBs> selectAllPhase(Integer page, Integer limit) {
        ToJson<PartyMemberWithBLOBs> toJson = new ToJson(1, "err");
        try {
            List<PartyMemberWithBLOBs> partyMemberWithBLOBs = partyMemberMapper.selectCaseOne(4);
            for (PartyMemberWithBLOBs partyMember :
                    partyMemberWithBLOBs) {
                Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                partyMember.setDeptName(department.getDeptName());
                OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
            }
            if (partyMemberWithBLOBs.size() > 0) {
                List list = getPageList(page, limit, partyMemberWithBLOBs);
                toJson.setTotleNum(partyMemberWithBLOBs.size());
                toJson.setObj(list);
                toJson.setFlag(0);
                toJson.setMsg("true");
            } else {
                toJson.setMsg("没有数据");
            }

        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg(e.getMessage());
        }
        return toJson;
    }

    @Override
    public ToJson<PartyMemberWithBLOBs> insetParty(HttpServletRequest request) {
        ToJson toJson = new ToJson(1, "err");
        PartyMemberWithBLOBs partyMember = new PartyMemberWithBLOBs();
        Cookie redisSessionId = CookiesUtil.getCookieByName(request, "redisSessionId");
        Users user = SessionUtils.getSessionInfo(request.getSession(), Users.class, new Users(), redisSessionId);
        String sqlType = "xoa" + (String) request.getSession().getAttribute("loginDateSouse");
        List<SysCode> sysCodes = sysCodeMapper.getSysCode("KQQJTYPE");
        PartyMemberWithBLOBs partyMember1 = partyMemberMapper.findPartyMember(user.getUserId(), null);
        if (partyMember1 == null) {
            for (SysCode sysCode : sysCodes) {
                if (sysCode.getCodeName().equals("入党申请")) {
                    ToJson<FlowFast> flowFastToJson = wfeFlowRunInfo.workFastAdd(user, Integer.parseInt(sysCode.getCodeNo()), 1, "1", "", request, sqlType, "", null);
                    if (flowFastToJson.isFlag()) {
                        FlowFast flowFast = (FlowFast) flowFastToJson.getObject();
                        partyMember.setRunId(flowFast.getFlowRun().getRunId());
                        partyMember.setUserId(user.getUserId());
                        partyMember.setUserName(user.getUserName());
                        partyMember.setBirthday(user.getBirthday());
                        partyMember.setDeptId(user.getDeptId());
                        partyMember.setPostId(user.getPostId());
                        partyMember.setDevelopPhase("0");
                        PartyMemberWithBLOBs partyMemberByRunId = partyMemberMapper.findPartyMemberByRunId(flowFast.getFlowRun().getRunId());
                        if (partyMemberByRunId != null) {
                            partyMemberMapper.deleteByPrimaryKey(partyMemberByRunId.getMemberId());
                        }
                        //判断表是否存在 没有的话新建
                        getFlowData(sqlType, flowFast.getFlowRun().getRunId(), flowFast.getFlowRun().getFlowId());

                        int amount = partyMemberMapper.insertSelective(partyMember);
                        if (amount > 0) {
                            toJson.setObject(partyMember);
                            toJson.setMsg("更新成功");
                        }
                    }
                }
            }
        } else {
            String developPhase = partyMember1.getDevelopPhase();
            switch (developPhase) {
                case "0"://申请阶段

                    toJson.setMsg("不可重复申请");
                    break;
                case "1"://申请通过阶段

                    toJson.setMsg("申请审核中");
                    toJson.setMsg("未间隔6个月");
                    break;
                case "2"://入党积极分子


                    toJson.setMsg("未完成全部考核");
                    break;
                case "3":

                    break;
                case "4":

                    toJson.setMsg("未完成全部考核");
                    break;
                case "5":

                    break;
                case "6":

                    toJson.setMsg("您已经是党员了");
                    break;
            }
        }
        return toJson;
    }

    @Autowired
    private DepartmentMapper departmentMapper;
    @Autowired
    private OrgDepartmentMapper orgDepartmentMapper;

    @Override
    public ToJson findPartyMember(HttpServletRequest request, Integer phase) {
        ToJson toJson = new ToJson(1, "err");
        Cookie redisSessionId = CookiesUtil.getCookieByName(request, "redisSessionId");
        Users user = SessionUtils.getSessionInfo(request.getSession(), Users.class, new Users(), redisSessionId);
        try {
            PartyMemberWithBLOBs partyMember = partyMemberMapper.findPartyMember(user.getUserId(), phase);
            if (partyMember != null) {
                Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                partyMember.setDeptName(department.getDeptName());
                OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
                partyMember.setPostName(user.getPostName());

            }
            toJson.setObject(partyMember);
            toJson.setFlag(0);
            toJson.setMsg("true");
        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg(e.getMessage());
        }
        return toJson;
    }

    @Override
    public ToJson initParty(HttpServletRequest request, Integer phase) {
        ToJson<PartyMemberWithBLOBs> toJson = new ToJson(1, "err");
        Cookie redisSessionId = CookiesUtil.getCookieByName(request, "redisSessionId");
        Users user = SessionUtils.getSessionInfo(request.getSession(), Users.class, new Users(), redisSessionId);
        try {
            PartyMemberWithBLOBs partyMember = partyMemberMapper.findPartyMember(user.getUserId(), null);
            /*if(partyMember !=null){ //判断是否是申请过
                //判断当前申请人状态是否合法
                if(partyMember.getDevelopPhase() != null &&!"".equals(partyMember.getDevelopPhase())){
                    //判断当前申请人状态是否与流程匹配
                    if(partyMember.getDevelopPhase().equals(String.valueOf(phase))){
                        Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                        partyMember.setDeptName(department.getDeptName());
                        Department depar = departmentMapper.selectByDeptId(partyMember.getParentPedtId());
                        partyMember.setParentPedtName(depar.getDeptName());
                        if(partyMember.getPostId()!=null){

                        }
                        //判断case 2入党积极分子
                        if(phase == 2){
                            if(partyMember.getReports() ==null) {//如果没提交思想报告说明刚刚开始这个流程 需要判断6个月时间
                                //计算时间
                                Calendar calendar = Calendar.getInstance();
                                Date applyTime = partyMember.getApplyTime();
                                calendar.setTime(applyTime);
                                calendar.add(Calendar.MONTH, 6);
                                long timeInMillis = calendar.getTimeInMillis();//6个月以后的时间戳
                                Date now = new Date();//当前时间
                                long time = now.getTime();//时间戳
                                if ((time - timeInMillis) < 0) {
                                    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                                    String format = simpleDateFormat.format(calendar.getTime());
                                    toJson.setMsg("您距离申请通过还未到6个月的时间,请:"+format+"后再申请!");
                                    return toJson;
                                }
                            }
                        }
                        //判断case 3发展对象
                        if(phase == 3){
                            //判断条件 时间大于一年并且四次思想汇报
                            if("4".equals(partyMember.getReports())){
                                Calendar calendar = Calendar.getInstance();
                                Date da = partyMember.getActivistsTime();//确认积极分子时间
                                calendar.setTime(da);
                                calendar.add(Calendar.MONTH, 12);
                                long timeInMillis = calendar.getTimeInMillis();//12个月以后的时间戳
                                Date now = new Date();//当前时间
                                long time = now.getTime();//时间戳
                                if ((time - timeInMillis) < 0) {
                                    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                                    String format = simpleDateFormat.format(calendar.getTime());
                                    toJson.setMsg("您距离积极分子通过还未到一年的时间,请:"+format+"后再申请!");
                                    return toJson;
                                }
                            }else{//判断还需要提交多少次思想汇报
                                toJson.setMsg("您的思想汇报还需要提交:"+(4-Integer.valueOf(partyMember.getReports()))+"次!");
                                return toJson;
                            }
                        }
                        //判断case 5已接收预备党员
                        if(phase == 5){
                            //入党宣誓
                            if(partyMember.getPrepareTime() !=null){//判断是否入党宣誓
                                if("8".equals(partyMember.getReports())){
                                    Calendar calendar = Calendar.getInstance();
                                    Date da = partyMember.getPrepareTime();//入党宣誓时间
                                    calendar.setTime(da);
                                    calendar.add(Calendar.MONTH, 12);
                                    long timeInMillis = calendar.getTimeInMillis();//12个月以后的时间戳
                                    Date now = new Date(    );//当前时间
                                    long time = now.getTime();//时间戳
                                    if ((time - timeInMillis) < 0) {
                                        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                                        String format = simpleDateFormat.format(calendar.getTime());
                                        toJson.setMsg("您距离入党宣誓通过还未到一年的时间,请:"+format+"后再申请!");
                                        return toJson;
                                    }
                                }else{//判断还需要提交多少次思想汇报
                                    toJson.setMsg("您的思想汇报还需要提交:"+(8-Integer.valueOf(partyMember.getReports()))+"次!");
                                    return toJson;
                                }
                            }
                        }
                        //判断case 6党员
                        toJson.setObject(partyMember);
                        toJson.setFlag(0);
                        toJson.setMsg("true");
                    }else{
                        if(phase<Integer.valueOf(partyMember.getDevelopPhase())){
                            toJson.setMsg("请勿重复申请");
                        }
                        if(phase>Integer.valueOf(partyMember.getDevelopPhase())){
                            toJson.setMsg("请按顺序申请");
                        }
                    }
                }else{
                    toJson.setMsg("申请状态有误");
                }

            }else{*/
            //初始化状态
            PartyMemberWithBLOBs partyMemberWithBLOBs = new PartyMemberWithBLOBs();
            partyMemberWithBLOBs.setPostId(user.getPostId());
            partyMemberWithBLOBs.setPostName(user.getPostName());
            partyMemberWithBLOBs.setUserId(user.getUserId());
            partyMemberWithBLOBs.setUserName(user.getUserName());
            partyMemberWithBLOBs.setBirthday(user.getBirthday());
            partyMemberWithBLOBs.setDeptId(user.getDeptId());
            partyMemberWithBLOBs.setDevelopPhase("0");
            if (user.getSex() != null) {
                partyMemberWithBLOBs.setSex(user.getSex());
            }
            Integer deptId = user.getDeptId();
            Department depart = departmentMapper.selectByDeptId(deptId);
            String deptName = depart.getDeptName();
            partyMemberWithBLOBs.setDeptName(deptName);
            if (depart.getDeptParent() != 0)
                deptId = depart.getDeptParent();
            while (deptId != 0) {    //查找最上级部门
                Department department = departmentMapper.selectByDeptId(deptId);
                if (department != null && department.getDeptParent() != null) {
                    deptId = department.getDeptParent();
                    depart = department;
                }
            }
            deptId = depart.getDeptId();
            String deptPName = depart.getDeptName();
      /*          partyMemberWithBLOBs.setParentPedtName(deptPName);
                partyMemberWithBLOBs.setParentPedtId(deptId);*/
            //partyMemberMapper.insertSelective(partyMemberWithBLOBs);
            toJson.setObject(partyMemberWithBLOBs);
            toJson.setFlag(0);
            toJson.setMsg("true");
            //}
        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg(e.getMessage());
        }
        return toJson;
    }


    //验证表是否存在不存在的话新建
    @Override
    public Map<String, Object> getFlowData(String sqlType, Integer runId, Integer flowId) {
        Map<String, Object> param = new HashMap<String, Object>();
        String tableName = "flow_data_" + flowId;
        param.put("tableName", tableName);
        if (StringUtils.checkNull(sqlType)) {
            param.put("tableSchema", "xoa1001");
        } else {
            param.put("tableSchema", sqlType);
        }
        //获取该表所有的列
        try {
            //获取表对应所有列 验证是否存在此表
            List<String> columns = workMapper.showColumns(param);
            //没有表则新建
            if (columns.size() == 0) {
                //获取表单信息
                Document document = this.getFormDocument(flowId);
                //返回表单对应所有字段，data_xx
                List<String> key = HtmlUtil.getAllData(document);
                param.put("tableName", tableName);
                param.put("keys", key);
                //读取配置文件
                ResourceBundle rb = ResourceBundle.getBundle("jdbc-sql");
                String databaseId = rb.getString("driverClassName");
                if (databaseId.contains("oracle")) {
                    workMapper.createSequence(param);
                }
                workMapper.createTable(param);
            }
            param.put("runId", runId);
            Map<String, Object> map = workMapper.select(param);
            return map;
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    @Override
    public Document getFormDocument(Integer flowId) {
        List<FlowFormType> forms = wfeFormTypeMapper.getFrombyFlowId(flowId);
        FlowFormType formType = forms.get(0);
        //获取表单信息
        Document document = HtmlUtil.getDom(formType.getPrintModel());
        return document;
    }

    @Autowired
    private WFEFlowTypeModelMapper wfeFlowTypeModelMapper;

    @Override
    public ToJson applyParty(HttpServletRequest request, HttpServletResponse response, PartyMemberWithBLOBs partyMemberWithBLOBs, Integer phase, String attrUrls) {
        ToJson<PartyMemberWithBLOBs> toJson = new ToJson(1, "err");
        //初始化流程
        try {
            String flowId = "";
            Map sysPara = getSysPara();
            if (phase == 0) {
                flowId = (String) sysPara.get("APPLICATION_FORM");
            }
            Cookie redisSessionId = CookiesUtil.getCookieByName(request, "redisSessionId");
            Users user = SessionUtils.getSessionInfo(request.getSession(), Users.class, new Users(), redisSessionId);
            //==========================
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
            String time = simpleDateFormat.format(new Date());
            String tableName = "flow_data_" + flowId;
            String sqlType = "xoa" + (String) request.getSession().getAttribute(
                    "loginDateSouse");
            if (StringUtils.checkNull((String) request.getSession().getAttribute(
                    "loginDateSouse"))) {
                sqlType = "xoa1001";
            }
            //时间紧迫 先把整个方法引用过来 获取runId================
            ToJson<FlowFast> re = wfeFlowRunInfo.workFastAdd(user, Integer.valueOf(flowId), 1, "1", "", request, null, null, "0");
            FlowFast flowFast = (FlowFast) re.getObject();
            FlowRun flowRun = flowFast.getFlowRun();
            int runId = flowRun.getRunId();
            //================================================
            //拿到这个流程对应的表单==============================
            List<FlowFormType> allFlowForm = wfeFormTypeMapper.getFrombyFlowId(Integer.parseInt(flowId));
            FlowFormType flowFormType = allFlowForm.get(0);
            //获取表单信息
            Map<String, Object> param = new HashMap<String, Object>();
            param.put("tableName", tableName);
            param.put("tableSchema", sqlType);
            Document document = HtmlUtil.getDom(flowFormType.getPrintModel());
            //这个map保存的是表单字段对应的中文
            Map<String, Object> mapForm = new HashMap<String, Object>();
            List<String> columns = workMapper.showColumns(param);
            //没有表则新建
            if (columns.size() == 0) {
                List<String> list = HtmlUtil.getAllData(document);
                param.put("keys", list);
                //读取配置文件
                ResourceBundle rb = ResourceBundle.getBundle("jdbc-sql");
                String databaseId = rb.getString("driverClassName");
                if (databaseId.contains("oracle")) {
                    workMapper.createSequence(param);
                }
                workMapper.createTable(param);
                columns = workMapper.showColumns(param);
            } else {//检查是否有新增加的列
                addColum(document, columns, tableName);
                columns = workMapper.showColumns(param);
            }
            List vList = new ArrayList();
            for (int i = 0, size = columns.size(); i < size; i++) {
                String name = HtmlUtil.getDocumentTitle(document, columns.get(i));
                String data = HtmlUtil.getDocumentName(document, name);
                if (data != null) {
                    vList.add(data);
                }
                mapForm.put(name, data);
            }
            HashMap fD = new HashMap();
            List<String> key = new ArrayList<String>();
            List<Object> value = new ArrayList<Object>();
            //这个串是附件的atturl 给流程回显用=====
            String[] attrUrl = null;
            if (attrUrls != null) {
                attrUrl = attrUrls.split(",");
            }
            //================================
            // 申请入党状态
            if (phase == 0) {
                partyMemberWithBLOBs.setRunId(runId);
                if (partyMemberWithBLOBs.getMemberId() == null) {//如果没有主键id,说明是新申请
                    partyMemberMapper.insertSelective(partyMemberWithBLOBs);
                } else {//如果有,说明是重复申请
                    partyMemberMapper.updateByPrimaryKeySelective(partyMemberWithBLOBs);
                }
                FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
                if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                    Integer flowAutoNum = flowTypeModel.getAutoNum();
                    key.add("FLOW_AUTO_NUM");
                    value.add(flowAutoNum);
                }
                key.add("RUN_ID");
                value.add(runId);
                key.add("RUN_NAME");
                value.add(flowTypeModel.getFlowName() + " " + time);
                key.add("BEGIN_TIME");
                value.add(time);
                key.add("BEGIN_USER");
                value.add(partyMemberWithBLOBs.getUserId());
                key.add("FLOW_AUTO_NUM_YEAR");
                value.add(0);
                key.add("FLOW_AUTO_NUM_MONTH");
                value.add(0);
                if (partyMemberWithBLOBs.getPostName() != null && !"".equals(partyMemberWithBLOBs.getPostName())) {
                    key.add(String.valueOf(mapForm.get("职务")));
                    value.add(partyMemberWithBLOBs.getPostName());
                }
                key.add(String.valueOf(mapForm.get("出生日期")));
                value.add(DateFormatUtils.formatDate(partyMemberWithBLOBs.getBirthday()));
                key.add(String.valueOf(mapForm.get("民族")));
                value.add(partyMemberWithBLOBs.getFamilyName());
                key.add(String.valueOf(mapForm.get("部门")));
                value.add(partyMemberWithBLOBs.getDeptName());
                key.add(String.valueOf(mapForm.get("姓名")));
                value.add(partyMemberWithBLOBs.getUserName());
                key.add(String.valueOf(mapForm.get("党支部")));
                value.add(partyMemberWithBLOBs.getParentPedtName());
                key.add(String.valueOf(mapForm.get("发展阶段")));
                value.add("申请入党");
                key.add(String.valueOf(mapForm.get("性别")));
                value.add("0".equals(partyMemberWithBLOBs.getSex()) ? "男" : "女");
                if (attrUrl != null) {
                    key.add(String.valueOf(mapForm.get("入党申请书")));
                    value.add(attrUrl[0] + "&userid=" + partyMemberWithBLOBs.getUserId() + "*");
                }
                for (int i = 0; i < columns.size(); i++) {
                    if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                        key.add(String.valueOf(columns.get(i)));
                        value.add("");
                    }
                }
                fD.put("tableName", tableName);
                fD.put("keys", key);
                fD.put("values", value);
                workMapper.insert(fD);
                Integer integer = orgPartyMemberMapper.selectByUserId(partyMemberWithBLOBs.getUserId());
                if(integer==0){
                    OrgPartyMember orgPartyMember = new OrgPartyMember();
                    orgPartyMember.setUserId(partyMemberWithBLOBs.getUserId());
                    orgPartyMember.setOrgDeptId(partyMemberWithBLOBs.getParentPedtId());
                    orgPartyMember.setName(user.getUserName());
                    orgPartyMemberMapper.insertSelective(orgPartyMember);
                }
            }
            HashMap result = new HashMap();
            result.put("flowId", flowId);
            result.put("runId", runId);
            toJson.setObject(result);
            toJson.setMsg("成功");
            toJson.setFlag(0);
        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg("党建基础设置错误");
        }
        return toJson;
    }

    @Override
    public ToJson passParty(HttpServletRequest request, Integer phase, Integer page, Integer limit) {
        ToJson<PartyMemberWithBLOBs> toJson = new ToJson(1, "err");
        try {
            List<PartyMemberWithBLOBs> partyMemberWithBLOBs = new ArrayList();
            if (phase != 4) {
                partyMemberWithBLOBs = partyMemberMapper.selectByPhase(phase);
            } else {
                HashMap map = new HashMap();
                map.put("phase", 4);
                map.put("phases", 5);
                partyMemberWithBLOBs = partyMemberMapper.selectByPhases(map);
            }

            ArrayList result = new ArrayList();
            if (partyMemberWithBLOBs.size() > 0) {
                for (PartyMemberWithBLOBs partyMember :
                        partyMemberWithBLOBs) {
                    Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                    partyMember.setDeptName(department.getDeptName());
                    OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                    partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
                    if (partyMember.getPostId() != null) {
                        String postName = dutiesManagementMapper.getUserPostId(partyMember.getPostId()).getPostName();
                        partyMember.setPostName(postName);
                    }
                    if (phase == 2) {//确认积极分子时间为空 并且阶段是2的 是还没提交的人
                        /*if(partyMember.getActivistsTime()==null) {
                            Calendar calendar = Calendar.getInstance();
                            Date applyTime = partyMember.getApplyTime();
                            calendar.setTime(applyTime);
                            calendar.add(Calendar.MONTH, 6);
                            long timeInMillis = calendar.getTimeInMillis();//6个月以后的时间戳
                            Date now = new Date();//当前时间
                            long time = now.getTime();//时间戳
                            if ((time - timeInMillis) >= 0) {*/
                        result.add(partyMember);
                     /*       }
                        }else{

                        }*/
                    }
                    if (phase == 3) {//确认发展对象时间为空 并且阶段是3的 是还没提交的人
                       /* if("4".equals(partyMember.getReports())) {
                            Calendar calendar = Calendar.getInstance();
                            Date da = partyMember.getActivistsTime();//确认积极分子时间
                            calendar.setTime(da);
                            calendar.add(Calendar.MONTH, 12);
                            long timeInMillis = calendar.getTimeInMillis();//12个月以后的时间戳
                            Date now = new Date();//当前时间
                            long time = now.getTime();//时间戳
                            if ((time - timeInMillis) >= 0) {*/
                        result.add(partyMember);
                            /*}
                        }*/
                    }
                    if (phase == 4) {
                        result.add(partyMember);
                    }
                    if (phase == 5) {
                        result.add(partyMember);
                    }
                }
                if (result.size() != 0) {
                    List list = getPageList(page, limit, result);
                    toJson.setTotleNum(result.size());
                    toJson.setObj(list);
                }
                toJson.setFlag(0);
                toJson.setMsg("查询成功");
            } else {
                toJson.setMsg("没有数据");
            }

        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg(e.getMessage());
        }
        return toJson;
    }

    //123@123_123123
    @Override
    public String urlDown(HttpServletRequest request, String attachId, String attachName) {
        String sqlType = "xoa" + (String) request.getSession().getAttribute(
                "loginDateSouse");
        String aid = attachId.split("@")[0];
        String ym = attachId.split("@")[1].split("_")[0];
        String id = attachId.split("@")[1].split("_")[1];
        String attUrl = "AID=" + aid + "&" + "MODULE=workflow" + "&" + "COMPANY=" + sqlType + "&" + "YM=" + ym + "&" + "ATTACHMENT_ID=" + id + "&" +
                "ATTACHMENT_NAME=" + attachName;
        return attUrl;

    }

    @Override
    public String initUrl(HttpServletRequest request, String attachId, String attachName) {
        String[] ids = attachId.split(",");
        String[] names = attachName.split(",");
        String id = "";

        for (int i = 0; i < ids.length; i++) {
            String[] idss = ids[i].split("\\*");
            String[] namess = names[i].split("\\*");
            String id1 = "";
            for (int j = 0; j < idss.length; j++) {
                String url = urlDown(request, idss[j], namess[j]);
                if (url != null && !"".equals(url)) {
                    id1 += url + "*";
                }
            }
            if (id1 != null && !"".equals(id1))
                id += id1 + ",";
        }
        return id;
    }

    @Override
    public ToJson partyInfo(HttpServletRequest request, String userId) {
        ToJson toJson = new ToJson(1, "err");
        PartyMemberWithBLOBs partyMember = partyMemberMapper.findPartyMember(userId, null);
        Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
        partyMember.setDeptName(department.getDeptName());
        OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
        partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
        if (partyMember.getPostId() != null) {
            String postName = dutiesManagementMapper.getUserPostId(partyMember.getPostId()).getPostName();
            partyMember.setPostName(postName);
        }
        if (partyMember.getDevelopContacts() != null) {
            String[] split = partyMember.getDevelopContacts().split(",");
            String name = "";
            for (int i = 0; i < split.length; i++) {
                Users usersByuserId = usersMapper.findUsersByuserId(split[i]);
                name += usersByuserId.getUserName() + ",";
            }
            name = name.substring(0, name.length() - 1);
            partyMember.setDevelopContacts(name);

        }
        if (partyMember.getRecommendPerson() != null) {
            String[] split = partyMember.getRecommendPerson().split(",");
            String name = "";
            for (int i = 0; i < split.length; i++) {
                Users usersByuserId = usersMapper.findUsersByuserId(split[i]);
                name += usersByuserId.getUserName() + ",";
            }
            name = name.substring(0, name.length() - 1);
            partyMember.setRecommendPerson(name);
        }
        String attachmentId = partyMember.getAttachmentId();
        String attachmentName = partyMember.getAttachmentName();
        if (attachmentId != null && !"".equals(attachmentId)) {
            partyMember.setAttachmentId(initUrl(request, attachmentId, attachmentName));
        }
        String attachmentIdApply = partyMember.getAttachmentIdApply();
        String attachmentNameApply = partyMember.getAttachmentNameApply();
        if (attachmentIdApply != null && !"".equals(attachmentIdApply)) {
            partyMember.setAttachmentIdApply(initUrl(request, attachmentIdApply, attachmentNameApply));
        }
        String attachmentIdAudit = partyMember.getAttachmentIdAudit();
        String attachmentNameAudit = partyMember.getAttachmentNameAudit();
        if (attachmentIdAudit != null && !"".equals(attachmentIdAudit)) {
            partyMember.setAttachmentIdAudit(initUrl(request, attachmentIdAudit, attachmentNameAudit));
        }
        String attachmentIdPositive = partyMember.getAttachmentIdPositive();
        String attachmentNamePositive = partyMember.getAttachmentNamePositive();
        if (attachmentIdPositive != null && !"".equals(attachmentIdPositive)) {
            partyMember.setAttachmentIdPositive(initUrl(request, attachmentIdPositive, attachmentNamePositive));
        }
        String attachmentIdDevelop = partyMember.getAttachmentIdDevelop();
        String attachmentNameDevelop = partyMember.getAttachmentNameDevelop();
        if (attachmentIdDevelop != null && !"".equals(attachmentIdDevelop)) {
            partyMember.setAttachmentIdDevelop(initUrl(request, attachmentIdDevelop, attachmentNameDevelop));
        }
        String attachmentIdPrepare = partyMember.getAttachmentIdPrepare();
        String attachmentNamePrepare = partyMember.getAttachmentNamePrepare();
        if (attachmentIdPrepare != null && !"".equals(attachmentIdPrepare)) {
            partyMember.setAttachmentIdPrepare(initUrl(request, attachmentIdPrepare, attachmentNamePrepare));
        }
        String attachmentIdReceive = partyMember.getAttachmentIdReceive();
        String attachmentNameReceive = partyMember.getAttachmentNameReceive();
        if (attachmentIdReceive != null && !"".equals(attachmentIdReceive)) {
            partyMember.setAttachmentIdReceive(initUrl(request, attachmentIdReceive, attachmentNameReceive));
        }
        String attachmentIdMember = partyMember.getAttachmentIdMember();
        String attachmentNameMember = partyMember.getAttachmentNameMember();
        if (attachmentIdMember != null && !"".equals(attachmentIdMember)) {
            partyMember.setAttachmentIdMember(initUrl(request, attachmentIdMember, attachmentNameMember));
        }
        //入党积极根子思想汇报
        if (partyMember.getAttachmentIdReport() != null) {
            String attachmentIdReport = partyMember.getAttachmentIdReport();
            String attachmentNameReport = partyMember.getAttachmentNameReport();
            partyMember.setAttachmentIdReport(initUrl(request, attachmentIdReport, attachmentNameReport));
        }
        //预备党员思想汇报
        if (partyMember.getAttachmentIdThoughtReport() != null) {
            String attachmentIdThoughtReport = partyMember.getAttachmentIdThoughtReport();
            String attachmentNameThoughtReport = partyMember.getAttachmentNameThoughtReport();
            partyMember.setAttachmentIdThoughtReport(initUrl(request, attachmentIdThoughtReport, attachmentNameThoughtReport));
        }
        //发展分子思想汇报
        if(partyMember.getAttachmentIdDevelopsReport() !=null){
            String attachmentIdDevelopsReport = partyMember.getAttachmentIdDevelopsReport();
            String attachmentNameDevelopsReport = partyMember.getAttachmentNameDevelopsReport();
            partyMember.setAttachmentIdDevelopsReport(initUrl(request, attachmentIdDevelopsReport, attachmentNameDevelopsReport));
        }

        if (partyMember != null) {
            toJson.setFlag(0);
            toJson.setObject(partyMember);
            toJson.setMsg("查询成功");
        } else {
            toJson.setMsg("请确认此人是否存在");
        }
        return toJson;
    }

    //业务层分页 yyl
    public List getPageList(Integer page, Integer limit, List list) {
        List list1 = new ArrayList();
        if (page == 1 && list.size() <= limit) {
            return list;
        } else if (page == 1 && list.size() > limit) {
            for (int i = 0; i < limit; i++) {
                list1.add(list.get(i));
            }
            return list1;

        } else if (page > 1) {
            if (list.size() / limit >= page) {
                for (int i = 0; i < limit; i++) {
                    list1.add(list.get(limit * (page - 1) + i));

                }
                return list1;
            } else {
                for (int i = 0; i < list.size() % 10; i++) {
                    list1.add(list.get(limit * (page - 1) + i));
                }
            }
            return list1;

        } else {
            return null;
        }
    }

    @Override
    public ToJson activeParty(HttpServletRequest request, String userId, Integer phase) {
        ToJson<PartyMemberWithBLOBs> toJson = new ToJson(1, "err");

        //初始化流程
        try {

            Cookie redisSessionId = CookiesUtil.getCookieByName(request, "redisSessionId");
            Users user = SessionUtils.getSessionInfo(request.getSession(), Users.class, new Users(), redisSessionId);
            //判断模块====================
            PartyMemberWithBLOBs partyMember = partyMemberMapper.findPartyMember(userId, null);
            Map sysPara = getSysPara();
            String flowId = "";
            if (partyMember.getNodeStatus().equals("0") || partyMember.getNodeStatus().equals("1")) {
                flowId = (String) sysPara.get("ACTIVIST");
            } else {
                flowId = (String) sysPara.get("ACTIVIST_REPROT");
            }

            if (partyMember != null) { //判断是否是申请过
                if ("0".equals(partyMember.getState())) {
                    toJson.setMsg("请勿重复提交");
                    return toJson;
                }
                //判断当前申请人状态是否合法
                if (partyMember.getDevelopPhase() != null && !"".equals(partyMember.getDevelopPhase())) {
                    //判断当前申请人状态是否与流程匹配
                    if (partyMember.getDevelopPhase().equals(String.valueOf(phase))) {
                        Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                        partyMember.setDeptName(department.getDeptName());
                        OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                        partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
                        if (partyMember.getPostId() != null) {
                            String postName = dutiesManagementMapper.getUserPostId(partyMember.getPostId()).getPostName();
                            partyMember.setPostName(postName);
                        }
                        //拦截不是0和1的
                        /*if (!partyMember.getNodeStatus().equals("0") && !partyMember.getNodeStatus().equals("1")) {
                            toJson.setMsg("请勿重复提交");
                            return toJson;
                        }*/
                        //判断case 2入党积极分子
                        if (phase == 2 && !partyMember.getNodeStatus().equals("0")) {
                            if (partyMember.getNodeStatus().equals("1")) {
                                //计算时间
                                Calendar calendar = Calendar.getInstance();
                                Date applyTime = partyMember.getApplyTime();
                                calendar.setTime(applyTime);
                                calendar.add(Calendar.MONTH, 6);
                                long timeInMillis = calendar.getTimeInMillis();//6个月以后的时间戳
                                Date now = new Date();//当前时间
                                long time = now.getTime();//时间戳
                                if ((time - timeInMillis) < 0) {
                                    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                                    String format = simpleDateFormat.format(calendar.getTime());
                                    toJson.setMsg("" + partyMember.getUserName() + "距离提交申请入党还未到6个月的时间,请:" + format + "后再申请!");
                                    return toJson;
                                }
                            }
                        }
                        //2.积极分子考察表一年限制,从确认积极分子开始
                        if (partyMember.getNodeStatus().equals("2")) {
                            Calendar calendar = Calendar.getInstance();
                            Date da = partyMember.getActivistsTime();//确认积极分子时间
                            calendar.setTime(da);
                            calendar.add(Calendar.MONTH, 12);
                            long timeInMillis = calendar.getTimeInMillis();//12个月以后的时间戳
                            Date now = new Date();//当前时间
                            long time = now.getTime();//时间戳
                            if ((time - timeInMillis) < 0) {
                                SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                                String format = simpleDateFormat.format(calendar.getTime());
                                toJson.setMsg("您距离积极分子通过还未到一年的时间,请:" + format + "后再申请!");
                                return toJson;
                            }
                            if(partyMember.getAttachmentIdReport()!=null&&partyMember.getAttachmentIdReport().split(",").length<4){
                                toJson.setMsg(partyMember.getUserName()+"思想汇报不足");
                                return toJson;
                            }
                        }
                    }
                }
            }
            //==========================
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
            String time = simpleDateFormat.format(new Date());
            String tableName = "flow_data_" + flowId;
            String sqlType = "xoa" + (String) request.getSession().getAttribute(
                    "loginDateSouse");
            if (StringUtils.checkNull((String) request.getSession().getAttribute(
                    "loginDateSouse"))) {
                sqlType = "xoa1001";
            }
            //时间紧迫 先把整个方法引用过来 获取runId================
            ToJson<FlowFast> re = wfeFlowRunInfo.workFastAdd(user, Integer.valueOf(flowId), 1, "1", "", request, null, null, "0");
            FlowFast flowFast = (FlowFast) re.getObject();
            FlowRun flowRun = flowFast.getFlowRun();
            int runId = flowRun.getRunId();
            //================================================
            //拿到这个流程对应的表单==============================
            List<FlowFormType> allFlowForm = wfeFormTypeMapper.getFrombyFlowId(Integer.parseInt(flowId));
            FlowFormType flowFormType = allFlowForm.get(0);
            //获取表单信息
            Map<String, Object> param = new HashMap<String, Object>();
            param.put("tableName", tableName);
            //param.put("runId", 95);
            param.put("tableSchema", sqlType);
            Document document = HtmlUtil.getDom(flowFormType.getPrintModel());
            //这个map保存的是表单字段对应的中文
            Map<String, Object> mapForm = new HashMap<String, Object>();
            List<String> columns = workMapper.showColumns(param);
            //没有表则新建
            if (columns.size() == 0) {

                List<String> list = HtmlUtil.getAllData(document);
                param.put("keys", list);
                //读取配置文件
                ResourceBundle rb = ResourceBundle.getBundle("jdbc-sql");
                String databaseId = rb.getString("driverClassName");
                if (databaseId.contains("oracle")) {
                    workMapper.createSequence(param);
                }
                workMapper.createTable(param);
                columns = workMapper.showColumns(param);
            } else {//检查是否有新增加的列
                addColum(document, columns, tableName);
                columns = workMapper.showColumns(param);
            }
            List vList = new ArrayList();
            for (int i = 0, size = columns.size(); i < size; i++) {
                String name = HtmlUtil.getDocumentTitle(document, columns.get(i));
                String data = HtmlUtil.getDocumentName(document, name);
                if (data != null) {
                    vList.add(data);
                }
                mapForm.put(name, data);
            }
            HashMap fD = new HashMap();
            List<String> key = new ArrayList<String>();
            List<Object> value = new ArrayList<Object>();
            // 申请入党状态
            if (phase == 2 && (partyMember.getNodeStatus().equals("0") || partyMember.getNodeStatus().equals("1"))) {//判断是否第一次进入确认积极分子
                partyMember.setRunId(runId);
                partyMember.setState("0");
                partyMemberMapper.updateByPrimaryKeySelective(partyMember);
                FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
                if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                    Integer flowAutoNum = flowTypeModel.getAutoNum();
                    key.add("FLOW_AUTO_NUM");
                    value.add(flowAutoNum);
                }

                key.add("RUN_ID");
                value.add(runId);
                key.add("RUN_NAME");
                value.add(flowTypeModel.getFlowName() + " " + time);
                key.add("BEGIN_TIME");
                value.add(time);
                key.add("BEGIN_USER");
                value.add(partyMember.getUserId());
                key.add("FLOW_AUTO_NUM_YEAR");
                value.add(0);
                key.add("FLOW_AUTO_NUM_MONTH");
                value.add(0);
                key.add(String.valueOf(mapForm.get("入党申请人")));
                value.add(partyMember.getUserName());
                key.add(String.valueOf(mapForm.get("入党申请时间")));
                value.add(DateFormatUtils.formatDate(partyMember.getApplyTime()));
                key.add(String.valueOf(mapForm.get("单位（部门）")));
                value.add(partyMember.getDeptName());
                key.add(String.valueOf(mapForm.get("所属党支部名称")));
                value.add(partyMember.getParentPedtName());

                for (int i = 0; i < columns.size(); i++) {
                    if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                        key.add(String.valueOf(columns.get(i)));
                        value.add("");
                    }
                }
                fD.put("tableName", tableName);
                fD.put("keys", key);
                fD.put("values", value);

                workMapper.insert(fD);

            }
            if (phase == 2 && (partyMember.getNodeStatus().equals("2"))) {//判断是否第一次进入确认积极分子
                partyMember.setRunId(runId);
                partyMember.setState("0");
                partyMemberMapper.updateByPrimaryKeySelective(partyMember);
                FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
                if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                    Integer flowAutoNum = flowTypeModel.getAutoNum();
                    key.add("FLOW_AUTO_NUM");
                    value.add(flowAutoNum);
                }

                key.add("RUN_ID");
                value.add(runId);
                key.add("RUN_NAME");
                value.add(flowTypeModel.getFlowName() + " " + time);
                key.add("BEGIN_TIME");
                value.add(time);
                key.add("BEGIN_USER");
                value.add(partyMember.getUserId());
                key.add("FLOW_AUTO_NUM_YEAR");
                value.add(0);
                key.add("FLOW_AUTO_NUM_MONTH");
                value.add(0);
                key.add(String.valueOf(mapForm.get("积极分子姓名")));
                value.add(partyMember.getUserName());
                key.add(String.valueOf(mapForm.get("确定积极分子时间 ")));
                value.add(DateFormatUtils.formatDate(partyMember.getActivistsTime()));
                key.add(String.valueOf(mapForm.get("单位（部门）")));
                value.add(partyMember.getDeptName());
                key.add(String.valueOf(mapForm.get("所属党支部名称")));
                value.add(partyMember.getParentPedtName());

                for (int i = 0; i < columns.size(); i++) {
                    if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                        key.add(String.valueOf(columns.get(i)));
                        value.add("");
                    }
                }
                fD.put("tableName", tableName);
                fD.put("keys", key);
                fD.put("values", value);

                workMapper.insert(fD);

            }
            HashMap result = new HashMap();
            result.put("flowId", flowId);
            result.put("runId", runId);
            toJson.setObject(result);
            toJson.setMsg("成功");
            toJson.setFlag(0);
        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg("党建基础设置错误");
        }

        return toJson;
    }

    @Override
    public ToJson developParty(HttpServletRequest request, String userId, Integer phase) {
        ToJson<PartyMemberWithBLOBs> toJson = new ToJson(1, "err");
        //初始化流程
        try {

            Cookie redisSessionId = CookiesUtil.getCookieByName(request, "redisSessionId");
            Users user = SessionUtils.getSessionInfo(request.getSession(), Users.class, new Users(), redisSessionId);
            //判断模块====================
            PartyMemberWithBLOBs partyMember = partyMemberMapper.findPartyMember(userId, null);
            if (partyMember != null) { //判断是否是申请过
                //判断当前申请人状态是否合法
                if (partyMember.getDevelopPhase() != null && !"".equals(partyMember.getDevelopPhase())) {
                    //判断当前申请人状态是否与流程匹配
                    if (partyMember.getDevelopPhase().equals(String.valueOf(phase))) {
                        Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                        partyMember.setDeptName(department.getDeptName());
                        OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                        partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
                        if (partyMember.getPostId() != null) {
                            String postName = dutiesManagementMapper.getUserPostId(partyMember.getPostId()).getPostName();
                            partyMember.setPostName(postName);
                        }
                        if ("0".equals(partyMember.getState())) {
                            toJson.setMsg("请等待审批");
                            return toJson;
                        }
                        //判断case 3发展对象
                        if (phase == 3 && !partyMember.getNodeStatus().equals("0")) {
                            //判断条件 时间大于一年并且四次思想汇报
                            /*if ("4".equals(partyMember.getReports())) {*/
                            if ("1".equals(partyMember.getNodeStatus())) {
                                /*Calendar calendar = Calendar.getInstance();
                                Date da = partyMember.getActivistsTime();//确认积极分子时间
                                calendar.setTime(da);
                                calendar.add(Calendar.MONTH, 12);
                                long timeInMillis = calendar.getTimeInMillis();//12个月以后的时间戳
                                Date now = new Date();//当前时间
                                long time = now.getTime();//时间戳
                                if ((time - timeInMillis) < 0) {
                                    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                                    String format = simpleDateFormat.format(calendar.getTime());
                                    toJson.setMsg("您距离积极分子通过还未到一年的时间,请:" + format + "后再申请!");
                                    return toJson;
                                }*/
                            }
                           /* } else {//判断还需要提交多少次思想汇报
                                if (partyMember.getReports() == null) {
                                    partyMember.setReports("0");
                                }
                                toJson.setMsg("您的思想汇报还需要提交:" + (4 - Integer.valueOf(partyMember.getReports())) + "次!");
                                return toJson;
                            }*/
                        }
                    }
                }
            }
            Map sysPara = getSysPara();
            String flowId = "";
            if (partyMember.getNodeStatus().equals("0") || partyMember.getNodeStatus().equals("1")) {
                flowId = (String) sysPara.get("DEVELOP_OBJ");
            }
            if (partyMember.getNodeStatus().equals("3")) {
                flowId = (String) sysPara.get("REVIEW");
            }
            //==========================
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
            String time = simpleDateFormat.format(new Date());
            String tableName = "flow_data_" + flowId;
            String sqlType = "xoa" + (String) request.getSession().getAttribute(
                    "loginDateSouse");
            if (StringUtils.checkNull((String) request.getSession().getAttribute(
                    "loginDateSouse"))) {
                sqlType = "xoa1001";
            }
            //时间紧迫 先把整个方法引用过来 获取runId================
            ToJson<FlowFast> re = wfeFlowRunInfo.workFastAdd(user, Integer.valueOf(flowId), 1, "1", "", request, null, null, "0");
            FlowFast flowFast = (FlowFast) re.getObject();
            FlowRun flowRun = flowFast.getFlowRun();
            int runId = flowRun.getRunId();
            //================================================
            //拿到这个流程对应的表单==============================
            List<FlowFormType> allFlowForm = wfeFormTypeMapper.getFrombyFlowId(Integer.parseInt(flowId));
            FlowFormType flowFormType = allFlowForm.get(0);
            //获取表单信息
            Map<String, Object> param = new HashMap<String, Object>();
            param.put("tableName", tableName);
            //param.put("runId", 95);
            param.put("tableSchema", sqlType);
            Document document = HtmlUtil.getDom(flowFormType.getPrintModel());
            //这个map保存的是表单字段对应的中文
            Map<String, Object> mapForm = new HashMap<String, Object>();
            List<String> columns = workMapper.showColumns(param);
            //没有表则新建
            if (columns.size() == 0) {
                List<String> list = HtmlUtil.getAllData(document);
                param.put("keys", list);
                //读取配置文件
                ResourceBundle rb = ResourceBundle.getBundle("jdbc-sql");
                String databaseId = rb.getString("driverClassName");
                if (databaseId.contains("oracle")) {
                    workMapper.createSequence(param);
                }
                workMapper.createTable(param);
                columns = workMapper.showColumns(param);
            } else {//检查是否有新增加的列
                addColum(document, columns, tableName);
                columns = workMapper.showColumns(param);
            }
            List vList = new ArrayList();
            for (int i = 0, size = columns.size(); i < size; i++) {
                String name = HtmlUtil.getDocumentTitle(document, columns.get(i));
                String data = HtmlUtil.getDocumentName(document, name);
                if (data != null) {
                    vList.add(data);
                }
                mapForm.put(name, data);
            }
            HashMap fD = new HashMap();
            List<String> key = new ArrayList<String>();
            List<Object> value = new ArrayList<Object>();
            //================================
            // 申请入党状态
            if (phase == 3) {
                if (partyMember.getNodeStatus().equals("0") || partyMember.getNodeStatus().equals("1")) {
                    partyMember.setRunId(runId);
                    partyMember.setState("0");
                    partyMemberMapper.updateByPrimaryKeySelective(partyMember);
                    FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
                    if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                        Integer flowAutoNum = flowTypeModel.getAutoNum();
                        key.add("FLOW_AUTO_NUM");
                        value.add(flowAutoNum);
                    }
                    key.add("RUN_ID");
                    value.add(runId);
                    key.add("RUN_NAME");
                    value.add(flowTypeModel.getFlowName() + " " + time);
                    key.add("BEGIN_TIME");
                    value.add(time);
                    key.add("BEGIN_USER");
                    value.add(partyMember.getUserId());
                    key.add("FLOW_AUTO_NUM_YEAR");
                    value.add(0);
                    key.add("FLOW_AUTO_NUM_MONTH");
                    value.add(0);
                    key.add(String.valueOf(mapForm.get("姓名")));
                    value.add(partyMember.getUserName());
                    key.add(String.valueOf(mapForm.get("确定入党积极分子时间")));
                    value.add(DateFormatUtils.formatDate(partyMember.getApplyTime()));
                    key.add(String.valueOf(mapForm.get("单位（部门）")));
                    value.add(partyMember.getDeptName());
                    key.add(String.valueOf(mapForm.get("所属党支部名称")));
                    value.add(partyMember.getParentPedtName());
                    for (int i = 0; i < columns.size(); i++) {
                        if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                            key.add(String.valueOf(columns.get(i)));
                            value.add("");
                        }
                    }
                    fD.put("tableName", tableName);
                    fD.put("keys", key);
                    fD.put("values", value);
                    workMapper.insert(fD);
                }
                if (partyMember.getAttachmentIdDevelop() != null && !"".equals(partyMember.getAttachmentIdDevelop())) {
                    if (partyMember.getNodeStatus().equals("3")) {
                        partyMember.setRunId(runId);
                        partyMember.setState("0");
                        partyMemberMapper.updateByPrimaryKeySelective(partyMember);
                        FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
                        if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                            Integer flowAutoNum = flowTypeModel.getAutoNum();
                            key.add("FLOW_AUTO_NUM");
                            value.add(flowAutoNum);
                        }
                        key.add("RUN_ID");
                        value.add(runId);
                        key.add("RUN_NAME");
                        value.add(flowTypeModel.getFlowName() + " " + time);
                        key.add("BEGIN_TIME");
                        value.add(time);
                        key.add("BEGIN_USER");
                        value.add(partyMember.getUserId());
                        key.add("FLOW_AUTO_NUM_YEAR");
                        value.add(0);
                        key.add("FLOW_AUTO_NUM_MONTH");
                        value.add(0);
                        key.add(String.valueOf(mapForm.get("发展对象姓名")));
                        value.add(partyMember.getUserName());
                        key.add(String.valueOf(mapForm.get("发展阶段")));
                        value.add((String.valueOf(partyMember.getDevelopPhase())));
                        for (int i = 0; i < columns.size(); i++) {
                            if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                                key.add(String.valueOf(columns.get(i)));
                                value.add("");
                            }
                        }
                        fD.put("tableName", tableName);
                        fD.put("keys", key);
                        fD.put("values", value);
                        workMapper.insert(fD);
                    }
                }

            }
            HashMap result = new HashMap();
            result.put("flowId", flowId);
            result.put("runId", runId);
            toJson.setObject(result);
            toJson.setMsg("成功");
            toJson.setFlag(0);


            //Users users, Integer flowId, Integer prcsId, String flowPrcs, String id, HttpServletRequest request, String sqlType, String runName, String preView
            //WFEFlowRunInfo.workFastAdd(user,170);


            //response.sendRedirect("http://localhost:8084/workflow/work/workform?opflag=1&flowId="+flowId+"&type=new&flowStep=1&prcsId=1&runId="+runId);
        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg("党建基础设置错误");
        }

        return toJson;
    }

    @Override
    public ToJson fourReport(HttpServletRequest request) {
        ToJson toJson = new ToJson();
        Map sysPara = getSysPara();
        String flowId = (String) sysPara.get("REPORT");
        //初始化流程
        try {
            Cookie redisSessionId = CookiesUtil.getCookieByName(request, "redisSessionId");
            Users user = SessionUtils.getSessionInfo(request.getSession(), Users.class, new Users(), redisSessionId);
            PartyMemberWithBLOBs partyMember = partyMemberMapper.findPartyMember(user.getUserId(), null);
            Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
            partyMember.setDeptName(department.getDeptName());
            OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
            partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
            if (partyMember.getPostId() != null) {
                String postName = dutiesManagementMapper.getUserPostId(partyMember.getPostId()).getPostName();
                partyMember.setPostName(postName);
            }
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
            String time = simpleDateFormat.format(new Date());
            String tableName = "flow_data_" + flowId;
            String sqlType = "xoa" + (String) request.getSession().getAttribute(
                    "loginDateSouse");
            if (StringUtils.checkNull((String) request.getSession().getAttribute(
                    "loginDateSouse"))) {
                sqlType = "xoa1001";
            }
            //时间紧迫 先把整个方法引用过来 获取runId================
            ToJson<FlowFast> re = wfeFlowRunInfo.workFastAdd(user, Integer.valueOf(flowId), 1, "1", "", request, null, null, "0");
            FlowFast flowFast = (FlowFast) re.getObject();
            FlowRun flowRun = flowFast.getFlowRun();
            int runId = flowRun.getRunId();
            //================================================
            //拿到这个流程对应的表单==============================
            List<FlowFormType> allFlowForm = wfeFormTypeMapper.getFrombyFlowId(Integer.parseInt(flowId));
            FlowFormType flowFormType = allFlowForm.get(0);
            //获取表单信息
            Map<String, Object> param = new HashMap<String, Object>();
            param.put("tableName", tableName);
            //param.put("runId", 95);
            param.put("tableSchema", sqlType);
            Document document = HtmlUtil.getDom(flowFormType.getPrintModel());
            //这个map保存的是表单字段对应的中文
            Map<String, Object> mapForm = new HashMap<String, Object>();
            List<String> columns = workMapper.showColumns(param);
            //没有表则新建
            if (columns.size() == 0) {
                List<String> list = HtmlUtil.getAllData(document);
                param.put("keys", list);
                //读取配置文件
                ResourceBundle rb = ResourceBundle.getBundle("jdbc-sql");
                String databaseId = rb.getString("driverClassName");
                if (databaseId.contains("oracle")) {
                    workMapper.createSequence(param);
                }
                workMapper.createTable(param);
                columns = workMapper.showColumns(param);
            } else {//检查是否有新增加的列
                addColum(document, columns, tableName);
                columns = workMapper.showColumns(param);
            }
            List vList = new ArrayList();
            for (int i = 0, size = columns.size(); i < size; i++) {
                String name = HtmlUtil.getDocumentTitle(document, columns.get(i));
                String data = HtmlUtil.getDocumentName(document, name);
                if (data != null) {
                    vList.add(data);
                }
                mapForm.put(name, data);
            }
            HashMap fD = new HashMap();
            List<String> key = new ArrayList<String>();
            List<Object> value = new ArrayList<Object>();
            //================================
            partyMember.setRunId(runId);
            partyMemberMapper.updateByPrimaryKeySelective(partyMember);
            FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
            if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                Integer flowAutoNum = flowTypeModel.getAutoNum();
                key.add("FLOW_AUTO_NUM");
                value.add(flowAutoNum);
            }
            key.add("RUN_ID");
            value.add(runId);
            key.add("RUN_NAME");
            value.add(flowTypeModel.getFlowName() + " " + time);
            key.add("BEGIN_TIME");
            value.add(time);
            key.add("BEGIN_USER");
            value.add(partyMember.getUserId());
            key.add("FLOW_AUTO_NUM_YEAR");
            value.add(0);
            key.add("FLOW_AUTO_NUM_MONTH");
            value.add(0);
            key.add(String.valueOf(mapForm.get("姓名")));
            value.add(partyMember.getUserName());
            key.add(String.valueOf(mapForm.get("发展阶段")));
            value.add(partyMember.getDevelopPhase());
            key.add(String.valueOf(mapForm.get("单位（部门）")));
            value.add(partyMember.getDeptName());
            key.add(String.valueOf(mapForm.get("所属党支部名称")));
            value.add(partyMember.getParentPedtName());
            for (int i = 0; i < columns.size(); i++) {
                if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                    key.add(String.valueOf(columns.get(i)));
                    value.add("");
                }
            }
            fD.put("tableName", tableName);
            fD.put("keys", key);
            fD.put("values", value);
            workMapper.insert(fD);
            HashMap result = new HashMap();
            result.put("flowId", flowId);
            result.put("runId", runId);
            toJson.setObject(result);
            toJson.setMsg("成功");
            toJson.setFlag(0);
        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg("党建基础设置错误"+e.getMessage());
        }
        return toJson;
    }

    @Override
    public ToJson progressParty(HttpServletRequest request, String userId, Integer phase) {
        ToJson<PartyMemberWithBLOBs> toJson = new ToJson(1, "err");
        //初始化流程
        try {
            String flowId = "";

            Cookie redisSessionId = CookiesUtil.getCookieByName(request, "redisSessionId");
            Users user = SessionUtils.getSessionInfo(request.getSession(), Users.class, new Users(), redisSessionId);
            PartyMemberWithBLOBs partyMember = partyMemberMapper.findPartyMember(userId, null);
            if (partyMember != null) { //判断是否是申请过
                //判断当前申请人状态是否合法
                if (partyMember.getDevelopPhase() != null && !"".equals(partyMember.getDevelopPhase())) {
                    //判断当前申请人状态是否与流程匹配
                    if (partyMember.getDevelopPhase().equals(String.valueOf(phase))) {
                        Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                        partyMember.setDeptName(department.getDeptName());
                        OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                        partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
                        if (partyMember.getPostId() != null) {
                            String postName = dutiesManagementMapper.getUserPostId(partyMember.getPostId()).getPostName();
                            partyMember.setPostName(postName);
                        }
                        if ("0".equals(partyMember.getState())) {
                            toJson.setMsg("请等待审批");
                            return toJson;
                        }
                        //判断case 4未接收预备党员
                        if (phase == 4) {

                        }
                        if (phase == 5) {
                            if (partyMember.getNodeStatus().equals("2")) {//接收预备党员时间1年

                                Calendar calendar = Calendar.getInstance();
                                Date da = partyMember.getReceiveTime();//入党宣誓时间
                                calendar.setTime(da);
                                calendar.add(Calendar.MONTH, 12);
                                long timeInMillis = calendar.getTimeInMillis();//12个月以后的时间戳
                                Date now = new Date();//当前时间
                                long time = now.getTime();//时间戳
                                if ((time - timeInMillis) < 0) {
                                    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                                    String format = simpleDateFormat.format(calendar.getTime());
                                    toJson.setMsg(partyMember.getUserName() + "距离通过接受预备党员时间还未到一年的时间,请:" + format + "后再申请!");
                                    return toJson;
                                }
                                if (partyMember.getAttachmentIdThoughtReport() != null &&
                                        partyMember.getAttachmentIdThoughtReport().split(",").length<4) {
                                    toJson.setMsg(partyMember.getUserName()+"思想汇报不足");
                                    return toJson;

                                }

                            }
                        }
                    }
                }
            }
            Map sysPara = getSysPara();
            if (phase == 4) {//d1
                if (partyMember.getNodeStatus().equals("0") || partyMember.getNodeStatus().equals("1")) {
                    flowId = (String) sysPara.get("EXAMINATION");
                }
                if (partyMember.getNodeStatus().equals("3")) {
                    flowId = (String) sysPara.get("DISCUSS");
                }
            }
            if (phase == 5) {//e1
                if (partyMember.getNodeStatus().equals("0") || partyMember.getNodeStatus().equals("1")) {
                    flowId = (String) sysPara.get("OATH");
                }
                if (partyMember.getNodeStatus().equals("2")) {
                    flowId = (String) sysPara.get("PROPARTY_REPORT");
                }
                if (partyMember.getNodeStatus().equals("7")) {
                    flowId = (String) sysPara.get("REGULAR");
                }
            }
            //==========================
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
            String time = simpleDateFormat.format(new Date());
            String tableName = "flow_data_" + flowId;
            String sqlType = "xoa" + (String) request.getSession().getAttribute(
                    "loginDateSouse");
            if (StringUtils.checkNull((String) request.getSession().getAttribute(
                    "loginDateSouse"))) {
                sqlType = "xoa1001";
            }
            //时间紧迫 先把整个方法引用过来 获取runId================
            ToJson<FlowFast> re = wfeFlowRunInfo.workFastAdd(user, Integer.valueOf(flowId), 1, "1", "", request, null, null, "0");
            FlowFast flowFast = (FlowFast) re.getObject();
            FlowRun flowRun = flowFast.getFlowRun();
            int runId = flowRun.getRunId();
            //================================================
            //拿到这个流程对应的表单==============================
            List<FlowFormType> allFlowForm = wfeFormTypeMapper.getFrombyFlowId(Integer.parseInt(flowId));
            FlowFormType flowFormType = allFlowForm.get(0);
            //获取表单信息
            Map<String, Object> param = new HashMap<String, Object>();
            param.put("tableName", tableName);
            //param.put("runId", 95);
            param.put("tableSchema", sqlType);
            Document document = HtmlUtil.getDom(flowFormType.getPrintModel());
            //这个map保存的是表单字段对应的中文
            Map<String, Object> mapForm = new HashMap<String, Object>();
            List<String> columns = workMapper.showColumns(param);
            //没有表则新建
            if (columns.size() == 0) {
                List<String> list = HtmlUtil.getAllData(document);
                param.put("keys", list);
                //读取配置文件
                ResourceBundle rb = ResourceBundle.getBundle("jdbc-sql");
                String databaseId = rb.getString("driverClassName");
                if (databaseId.contains("oracle")) {
                    workMapper.createSequence(param);
                }
                workMapper.createTable(param);
                columns = workMapper.showColumns(param);
            } else {//检查是否有新增加的列
                addColum(document, columns, tableName);
                columns = workMapper.showColumns(param);
            }
            List vList = new ArrayList();
            for (int i = 0, size = columns.size(); i < size; i++) {
                String name = HtmlUtil.getDocumentTitle(document, columns.get(i));
                String data = HtmlUtil.getDocumentName(document, name);
                if (data != null) {
                    vList.add(data);
                }
                mapForm.put(name, data);
            }
            HashMap fD = new HashMap();
            List<String> key = new ArrayList<String>();
            List<Object> value = new ArrayList<Object>();
            //================================
            if (phase == 4) {
                if (partyMember.getNodeStatus().equals("0") || partyMember.getNodeStatus().equals("1")) {
                    partyMember.setRunId(runId);
                    partyMember.setState("0");
                    partyMemberMapper.updateByPrimaryKeySelective(partyMember);
                    FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
                    if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                        Integer flowAutoNum = flowTypeModel.getAutoNum();
                        key.add("FLOW_AUTO_NUM");
                        value.add(flowAutoNum);
                    }
                    key.add("RUN_ID");
                    value.add(runId);
                    key.add("RUN_NAME");
                    value.add(flowTypeModel.getFlowName() + " " + time);
                    key.add("BEGIN_TIME");
                    value.add(time);
                    key.add("BEGIN_USER");
                    value.add(partyMember.getUserId());
                    key.add("FLOW_AUTO_NUM_YEAR");
                    value.add(0);
                    key.add("FLOW_AUTO_NUM_MONTH");
                    value.add(0);
                    key.add(String.valueOf(mapForm.get("发展对象姓名")));
                    value.add(partyMember.getUserName());
                    key.add(String.valueOf(mapForm.get("确定发展对象时间")));
                    value.add(DateFormatUtils.formatDate(partyMember.getDevelopTime()));
                    key.add(String.valueOf(mapForm.get("单位（部门）")));
                    value.add(partyMember.getDeptName());
                    key.add(String.valueOf(mapForm.get("所属党支部名称")));
                    value.add(partyMember.getParentPedtName());
                    for (int i = 0; i < columns.size(); i++) {
                        if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                            key.add(String.valueOf(columns.get(i)));
                            value.add("");
                        }
                    }
                    fD.put("tableName", tableName);
                    fD.put("keys", key);
                    fD.put("values", value);
                    workMapper.insert(fD);
                } else if (partyMember.getNodeStatus().equals("3")) {
                    partyMember.setRunId(runId);
                    partyMember.setState("0");
                    partyMemberMapper.updateByPrimaryKeySelective(partyMember);
                    FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
                    if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                        Integer flowAutoNum = flowTypeModel.getAutoNum();
                        key.add("FLOW_AUTO_NUM");
                        value.add(flowAutoNum);
                    }
                    key.add("RUN_ID");
                    value.add(runId);
                    key.add("RUN_NAME");
                    value.add(flowTypeModel.getFlowName() + " " + time);
                    key.add("BEGIN_TIME");
                    value.add(time);
                    key.add("BEGIN_USER");
                    value.add(partyMember.getUserId());
                    key.add("FLOW_AUTO_NUM_YEAR");
                    value.add(0);
                    key.add("FLOW_AUTO_NUM_MONTH");
                    value.add(0);
                    key.add(String.valueOf(mapForm.get("发展对象姓名")));
                    value.add(partyMember.getUserName());
                    key.add(String.valueOf(mapForm.get("列为发展对象时间")));
                    value.add(DateFormatUtils.formatDate(partyMember.getDevelopTime()));
                    key.add(String.valueOf(mapForm.get("单位（部门）")));
                    value.add(partyMember.getDeptName());
                    key.add(String.valueOf(mapForm.get("所属党支部名称")));
                    value.add(partyMember.getParentPedtName());
                    for (int i = 0; i < columns.size(); i++) {
                        if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                            key.add(String.valueOf(columns.get(i)));
                            value.add("");
                        }
                    }
                    fD.put("tableName", tableName);
                    fD.put("keys", key);
                    fD.put("values", value);
                    workMapper.insert(fD);
                }
            }
            if (phase == 5) {
                if (partyMember.getNodeStatus().equals("0") || partyMember.getNodeStatus().equals("1")) {
                    partyMember.setRunId(runId);
                    partyMember.setState("0");
                    //如果他选择发展阶段直接到此阶段,那么需要给他一个接收预备党员时间
                    if (partyMember.getReceiveTime() == null) {
                        partyMember.setReceiveTime(new Date());
                    }
                    partyMemberMapper.updateByPrimaryKeySelective(partyMember);
                    FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
                    if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                        Integer flowAutoNum = flowTypeModel.getAutoNum();
                        key.add("FLOW_AUTO_NUM");
                        value.add(flowAutoNum);
                    }
                    key.add("RUN_ID");
                    value.add(runId);
                    key.add("RUN_NAME");
                    value.add(flowTypeModel.getFlowName() + " " + time);
                    key.add("BEGIN_TIME");
                    value.add(time);
                    key.add("BEGIN_USER");
                    value.add(partyMember.getUserId());
                    key.add("FLOW_AUTO_NUM_YEAR");
                    value.add(0);
                    key.add("FLOW_AUTO_NUM_MONTH");
                    value.add(0);
                    key.add(String.valueOf(mapForm.get("预备党员姓名")));
                    value.add(partyMember.getUserName());
                    key.add(String.valueOf(mapForm.get("接收预备党员时间")));
                    value.add(DateFormatUtils.formatDate(partyMember.getReceiveTime()));
                    key.add(String.valueOf(mapForm.get("发展阶段")));
                    value.add(partyMember.getDevelopPhase());
                    key.add(String.valueOf(mapForm.get("所属党支部名称")));
                    value.add(partyMember.getParentPedtName());
                    for (int i = 0; i < columns.size(); i++) {
                        if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                            key.add(String.valueOf(columns.get(i)));
                            value.add("");
                        }
                    }
                    fD.put("tableName", tableName);
                    fD.put("keys", key);
                    fD.put("values", value);
                    workMapper.insert(fD);
                } else if (partyMember.getNodeStatus().equals("2")) {
                    partyMember.setRunId(runId);
                    partyMember.setState("0");
                    partyMemberMapper.updateByPrimaryKeySelective(partyMember);
                    FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
                    if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                        Integer flowAutoNum = flowTypeModel.getAutoNum();
                        key.add("FLOW_AUTO_NUM");
                        value.add(flowAutoNum);
                    }
                    key.add("RUN_ID");
                    value.add(runId);
                    key.add("RUN_NAME");
                    value.add(flowTypeModel.getFlowName() + " " + time);
                    key.add("BEGIN_TIME");
                    value.add(time);
                    key.add("BEGIN_USER");
                    value.add(partyMember.getUserId());
                    key.add("FLOW_AUTO_NUM_YEAR");
                    value.add(0);
                    key.add("FLOW_AUTO_NUM_MONTH");
                    value.add(0);
                    key.add(String.valueOf(mapForm.get("预备党员姓名")));
                    value.add(partyMember.getUserName());
                    key.add(String.valueOf(mapForm.get("接收预备党员时间")));
                    value.add(DateFormatUtils.formatDate(partyMember.getReceiveTime()));
                    key.add(String.valueOf(mapForm.get("单位（部门）")));
                    value.add(partyMember.getDeptName());
                    key.add(String.valueOf(mapForm.get("所属党支部名称")));
                    value.add(partyMember.getParentPedtName());
                    for (int i = 0; i < columns.size(); i++) {
                        if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                            key.add(String.valueOf(columns.get(i)));
                            value.add("");
                        }
                    }
                    fD.put("tableName", tableName);
                    fD.put("keys", key);
                    fD.put("values", value);
                    workMapper.insert(fD);
                } else if (partyMember.getNodeStatus().equals("7")) {
                    partyMember.setRunId(runId);
                    partyMember.setState("0");
                    partyMemberMapper.updateByPrimaryKeySelective(partyMember);
                    FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
                    if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                        Integer flowAutoNum = flowTypeModel.getAutoNum();
                        key.add("FLOW_AUTO_NUM");
                        value.add(flowAutoNum);
                    }
                    key.add("RUN_ID");
                    value.add(runId);
                    key.add("RUN_NAME");
                    value.add(flowTypeModel.getFlowName() + " " + time);
                    key.add("BEGIN_TIME");
                    value.add(time);
                    key.add("BEGIN_USER");
                    value.add(partyMember.getUserId());
                    key.add("FLOW_AUTO_NUM_YEAR");
                    value.add(0);
                    key.add("FLOW_AUTO_NUM_MONTH");
                    value.add(0);
                    key.add(String.valueOf(mapForm.get("预备党员姓名")));
                    value.add(partyMember.getUserName());
                    key.add(String.valueOf(mapForm.get("接收预备党员时间")));
                    value.add(DateFormatUtils.formatDate(partyMember.getReceiveTime()));
                    key.add(String.valueOf(mapForm.get("单位（部门）")));
                    value.add(partyMember.getDeptName());
                    key.add(String.valueOf(mapForm.get("所属党支部名称")));
                    value.add(partyMember.getParentPedtName());
                    for (int i = 0; i < columns.size(); i++) {
                        if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                            key.add(String.valueOf(columns.get(i)));
                            value.add("");
                        }
                    }
                    fD.put("tableName", tableName);
                    fD.put("keys", key);
                    fD.put("values", value);
                    workMapper.insert(fD);
                }
            }
            HashMap result = new HashMap();
            result.put("flowId", flowId);
            result.put("runId", runId);
            toJson.setObject(result);
            toJson.setMsg("成功");
            toJson.setFlag(0);
        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg("党建基础设置错误");
        }
        return toJson;
    }

    @Override
    public ToJson saveSysPara(String partySys) {
        ToJson toJson = new ToJson(1, "err");
        SysPara parm = new SysPara();
        parm.setParaName("SET_PARTY_FLOW");
        parm.setParaValue(partySys);
        SysPara sysPara = sysParaMapper.querySysPara("SET_PARTY_FLOW");
        int i = 0;
        if (sysPara != null) {
            i = sysParaMapper.updateSysPara(parm);
        } else {
            i = sysParaMapper.insertSysPara(parm);
        }
        if (i > 0) {
            toJson.setMsg("保存成功");
            toJson.setFlag(0);
        }
        return toJson;
    }

    @Override
    public ToJson selectPhase(HttpServletRequest request, PartyMemberWithBLOBs partyMemberWithBLOBs) {

        ToJson<PartyMemberWithBLOBs> toJson = new ToJson(1, "err");
        //初始化流程
        try {
            Map sysPara = getSysPara();
            String phase = partyMemberWithBLOBs.getDevelopPhase();
            String flowId = (String) sysPara.get("SELECT_PHASE");//选择发展阶段流程
            Cookie redisSessionId = CookiesUtil.getCookieByName(request, "redisSessionId");
            Users user = SessionUtils.getSessionInfo(request.getSession(), Users.class, new Users(), redisSessionId);
            //先查询有没有这个人申请的记录
            PartyMemberWithBLOBs partyMember = partyMemberMapper.findPartyMember(partyMemberWithBLOBs.getUserId(), null);
            //如果有先不更改他的数据,让触发器更改
            //如果没有说明第一次申请,并且跳过了申请入党阶段,但是不能给他标识,仅仅给他新建一条数据
            if (partyMember == null) {
                PartyMemberWithBLOBs p = new PartyMemberWithBLOBs();
                p.setUserId(partyMemberWithBLOBs.getUserId());//用户id
                p.setUserName(partyMemberWithBLOBs.getUserName());//用户名称
                p.setDeptId(partyMemberWithBLOBs.getDeptId());//用户部门
                p.setParentPedtId(partyMemberWithBLOBs.getParentPedtId());//所属党支部id
                if (partyMemberWithBLOBs.getPostId() != null) {
                    p.setPostId(partyMemberWithBLOBs.getPostId());//职位id
                }
                if (partyMemberWithBLOBs.getFamilyName() != null) {
                    p.setFamilyName(partyMemberWithBLOBs.getFamilyName());//民族
                }
                if (partyMemberWithBLOBs.getBirthday() != null) {
                    p.setBirthday(partyMemberWithBLOBs.getBirthday());//生日
                }
                p.setSex(partyMemberWithBLOBs.getSex());
                p.setDevelopPhase("");//不给任何状态 等待提交到流程后,由触发器给与
                int i = partyMemberMapper.insertSelective(p);
                if (i == 0) {
                    toJson.setMsg("用户参数错误");
                    return toJson;
                }
            } else {
                partyMember.setParentPedtId(partyMemberWithBLOBs.getParentPedtId());
                partyMember.setSex(partyMemberWithBLOBs.getSex());
                partyMember.setFamilyName(partyMemberWithBLOBs.getFamilyName());
                partyMember.setBirthday(partyMemberWithBLOBs.getBirthday());
                Department department = departmentMapper.selectByDeptId(partyMemberWithBLOBs.getDeptId());
                partyMember.setDeptName(department.getDeptName());
                partyMember.setDeptId(partyMemberWithBLOBs.getDeptId());
                OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
                if (partyMemberWithBLOBs.getPostId() != null && !"".equals(partyMemberWithBLOBs.getPostId())) {
                    partyMember.setPostId(partyMemberWithBLOBs.getPostId());
                }
                if (partyMember.getPostId() != null && !"".equals(partyMember.getPostId())) {
                    String postName = dutiesManagementMapper.getUserPostId(partyMember.getPostId()).getPostName();
                    partyMember.setPostName(postName);
                }

                partyMemberWithBLOBs = partyMember;
            }
            //开始跳转流程
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
            String time = simpleDateFormat.format(new Date());
            String tableName = "flow_data_" + flowId;
            String sqlType = "xoa" + (String) request.getSession().getAttribute(
                    "loginDateSouse");
            if (StringUtils.checkNull((String) request.getSession().getAttribute(
                    "loginDateSouse"))) {
                sqlType = "xoa1001";
            }
            //时间紧迫 先把整个方法引用过来 获取runId================
            ToJson<FlowFast> re = wfeFlowRunInfo.workFastAdd(user, Integer.valueOf(flowId), 1, "1", "", request, null, null, "0");
            FlowFast flowFast = (FlowFast) re.getObject();
            FlowRun flowRun = flowFast.getFlowRun();
            int runId = flowRun.getRunId();
            //================================================
            //拿到这个流程对应的表单==============================
            List<FlowFormType> allFlowForm = wfeFormTypeMapper.getFrombyFlowId(Integer.parseInt(flowId));
            FlowFormType flowFormType = allFlowForm.get(0);
            //获取表单信息
            Map<String, Object> param = new HashMap<String, Object>();
            param.put("tableName", tableName);
            //param.put("runId", 95);
            param.put("tableSchema", sqlType);
            Document document = HtmlUtil.getDom(flowFormType.getPrintModel());
            //这个map保存的是表单字段对应的中文
            Map<String, Object> mapForm = new HashMap<String, Object>();
            List<String> columns = workMapper.showColumns(param);
            //没有表则新建
            if (columns.size() == 0) {
                List<String> list = HtmlUtil.getAllData(document);
                param.put("keys", list);
                //读取配置文件
                ResourceBundle rb = ResourceBundle.getBundle("jdbc-sql");
                String databaseId = rb.getString("driverClassName");
                if (databaseId.contains("oracle")) {
                    workMapper.createSequence(param);
                }
                workMapper.createTable(param);
                columns = workMapper.showColumns(param);
            }
            List vList = new ArrayList();
            for (int i = 0, size = columns.size(); i < size; i++) {
                String name = HtmlUtil.getDocumentTitle(document, columns.get(i));
                String data = HtmlUtil.getDocumentName(document, name);
                if (data != null) {
                    vList.add(data);
                }
                mapForm.put(name, data);
            }
            HashMap fD = new HashMap();
            List<String> key = new ArrayList<String>();
            List<Object> value = new ArrayList<Object>();

            partyMemberWithBLOBs.setRunId(runId);
            partyMemberWithBLOBs.setState("0");
            partyMemberMapper.updateByPrimaryKeySelective(partyMemberWithBLOBs);
            FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
            if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                Integer flowAutoNum = flowTypeModel.getAutoNum();
                key.add("FLOW_AUTO_NUM");
                value.add(flowAutoNum);
            }

            key.add("RUN_ID");
            value.add(runId);
            key.add("RUN_NAME");
            value.add(flowTypeModel.getFlowName() + " " + time);
            key.add("BEGIN_TIME");
            value.add(time);
            key.add("BEGIN_USER");
            value.add(partyMemberWithBLOBs.getUserId());
            key.add("FLOW_AUTO_NUM_YEAR");
            value.add(0);
            key.add("FLOW_AUTO_NUM_MONTH");
            value.add(0);
            if (partyMemberWithBLOBs.getPostName() != null && !"".equals(partyMemberWithBLOBs.getPostName())) {
                key.add(String.valueOf(mapForm.get("职务")));
                value.add(partyMemberWithBLOBs.getPostName());
            }
            key.add(String.valueOf(mapForm.get("出生日期")));
            value.add(DateFormatUtils.formatDate(partyMemberWithBLOBs.getBirthday()));
            key.add(String.valueOf(mapForm.get("民族")));
            value.add(partyMemberWithBLOBs.getFamilyName());
            key.add(String.valueOf(mapForm.get("部门")));
            value.add(partyMemberWithBLOBs.getDeptName());
            key.add(String.valueOf(mapForm.get("姓名")));
            value.add(partyMemberWithBLOBs.getUserName());
            key.add(String.valueOf(mapForm.get("党支部")));
            value.add(partyMemberWithBLOBs.getParentPedtName());
            key.add(String.valueOf(mapForm.get("发展阶段")));
            value.add(phase);
            key.add(String.valueOf(mapForm.get("性别")));
            value.add("0".equals(partyMemberWithBLOBs.getSex()) ? "男" : "女");
            for (int i = 0; i < columns.size(); i++) {
                if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                    key.add(String.valueOf(columns.get(i)));
                    value.add("");
                }
            }
            fD.put("tableName", tableName);
            fD.put("keys", key);
            fD.put("values", value);
            workMapper.insert(fD);
            HashMap result = new HashMap();
            result.put("flowId", flowId);
            result.put("runId", runId);
            toJson.setObject(result);
            toJson.setMsg("成功");
            toJson.setFlag(0);
        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg("党建基础设置错误");
        }
        return toJson;
    }

    /**
     * @return limsJson
     * @作者 LWW
     * @创建日期 11:21 2020/10/17
     * @类介绍 党建导出功能
     * @参数
     */
    @Override
    public LimsJson getFileExport(HttpServletRequest request, HttpServletResponse response, Integer phase) {

        LimsJson limsJson = new LimsJson(1, "err");
        try {

            List<PartyMemberWithBLOBs> partyMemberWithBLOBs = partyMemberMapper.selectByPhase(phase);
            for (PartyMemberWithBLOBs partyMembers :
                    partyMemberWithBLOBs) {
                PartyMemberWithBLOBs partyMember = partyMemberMapper.findPartyMember(partyMembers.getUserId(), null);
                if (partyMember != null) {
                    Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                    partyMembers.setDeptName(department.getDeptName());
                    OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                    partyMembers.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
                    if (partyMember.getPostId() != null) {
                        String postName = dutiesManagementMapper.getUserPostId(partyMember.getPostId()).getPostName();
                        partyMembers.setPostName(postName);
                    }
                    String attachmentId = partyMember.getAttachmentId();
                    String attachmentName = partyMember.getAttachmentName();
                    if (attachmentId != null && !"".equals(attachmentId)) {
                        partyMembers.setAttachmentId(initUrl(request, attachmentId, attachmentName));
                    }
                    String attachmentIdApply = partyMember.getAttachmentIdApply();
                    String attachmentNameApply = partyMember.getAttachmentNameApply();
                    if (attachmentIdApply != null && !"".equals(attachmentIdApply)) {
                        partyMembers.setAttachmentIdApply(initUrl(request, attachmentIdApply, attachmentNameApply));
                    }
                    String attachmentIdAudit = partyMember.getAttachmentIdAudit();
                    String attachmentNameAudit = partyMember.getAttachmentNameAudit();
                    if (attachmentIdAudit != null && !"".equals(attachmentIdAudit)) {
                        partyMembers.setAttachmentIdAudit(initUrl(request, attachmentIdAudit, attachmentNameAudit));
                    }
                    String attachmentIdPositive = partyMember.getAttachmentIdPositive();
                    String attachmentNamePositive = partyMember.getAttachmentNamePositive();
                    if (attachmentIdPositive != null && !"".equals(attachmentIdPositive)) {
                        partyMembers.setAttachmentIdPositive(initUrl(request, attachmentIdPositive, attachmentNamePositive));
                    }
                    String attachmentIdDevelop = partyMember.getAttachmentIdDevelop();
                    String attachmentNameDevelop = partyMember.getAttachmentNameDevelop();
                    if (attachmentIdDevelop != null && !"".equals(attachmentIdDevelop)) {
                        partyMembers.setAttachmentIdDevelop(initUrl(request, attachmentIdDevelop, attachmentNameDevelop));
                    }
                    String attachmentIdPrepare = partyMember.getAttachmentIdPrepare();
                    String attachmentNamePrepare = partyMember.getAttachmentNamePrepare();
                    if (attachmentIdPrepare != null && !"".equals(attachmentIdPrepare)) {
                        partyMembers.setAttachmentIdPrepare(initUrl(request, attachmentIdPrepare, attachmentNamePrepare));
                    }
                    String attachmentIdReceive = partyMember.getAttachmentIdReceive();
                    String attachmentNameReceive = partyMember.getAttachmentNameReceive();
                    if (attachmentIdReceive != null && !"".equals(attachmentIdReceive)) {
                        partyMembers.setAttachmentIdReceive(initUrl(request, attachmentIdReceive, attachmentNameReceive));
                    }
                    String attachmentIdMember = partyMember.getAttachmentIdMember();
                    String attachmentNameMember = partyMember.getAttachmentNameMember();
                    if (attachmentIdMember != null && !"".equals(attachmentIdMember)) {
                        partyMembers.setAttachmentNameMember(initUrl(request, attachmentIdMember, attachmentNameMember));
                    }
                    if (partyMember.getBirthday() != null) {
                        String beginDate = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(partyMember.getBirthday());
                        partyMembers.setBirthdayN(beginDate);
                    }
                    if (partyMember.getSex().equals("0")) {
                        partyMembers.setSex("男");
                    } else {
                        partyMembers.setSex("女");
                    }
                    if (partyMember.getDevelopPhase() != null) {
                        if (partyMember.getDevelopPhase().equals("0")) {
                            partyMembers.setDevelopPhase("申请入党");
                        }
                        if (partyMember.getDevelopPhase().equals("1")) {
                            partyMembers.setDevelopPhase("入党审核");
                        }
                        if (partyMember.getDevelopPhase().equals("2")) {
                            partyMembers.setDevelopPhase("积极分子");
                        }
                        if (partyMember.getDevelopPhase().equals("3")) {
                            partyMembers.setDevelopPhase("发展对象");
                        }
                        if (partyMember.getDevelopPhase().equals("4")) {
                            partyMembers.setDevelopPhase("预备党员未接收");
                        }
                        if (partyMember.getDevelopPhase().equals("5")) {
                            partyMembers.setDevelopPhase("预备党员已接收");
                        }
                        if (partyMember.getDevelopPhase().equals("6")) {
                            partyMembers.setDevelopPhase("正式党员");
                        }
                    }
                }
            }
            //导出excel头部标题
            HSSFWorkbook workbook1 = ExcelUtil.makeExcelHead("党员信息", 6);
            String[] secondTitles = {"入党申请人", "发展阶段", "性别", "出生日期", "民族", "职务", "单位（部门）", "所属党支部"};

            //设定二级标题
            HSSFWorkbook workbook2 = ExcelUtil.makeSecondHead(workbook1, secondTitles);

            String[] beanProperty = {"userName", "developPhase", "sex", "birthdayN", "familyName", "postName", "deptName", "parentPedtName"};

            //插入数据
            HSSFWorkbook workbook = ExcelUtil.exportExcelData(workbook2, partyMemberWithBLOBs, beanProperty);
            ServletOutputStream out = response.getOutputStream();

            String filename = "党员信息.xls";

            //文件名称
            filename = FileUtils.encodeDownloadFilename(filename, request.getHeader("user-agent"));
            response.setContentType("application/vnd.ms-excel");
            response.setHeader("content-disposition", "attachment;filename=" + filename);
            workbook.write(out);//写入数据
            out.close();//关闭资源
            limsJson.setMsg("导出数据成功");
            limsJson.setCode(0);
            limsJson.setFlag(0);
        } catch (Exception e) {
            limsJson.setFlag(1);
            limsJson.setMsg("导出数据失败，程序出现问题，请联系开发人员");
            e.printStackTrace();
        }
        return limsJson;
    }

    /**
     * @return limsJson
     * @作者 李卫卫
     * @创建日期 15:56 2020/10/17
     * @类介绍 导出党员阶段为 4和5 阶段数据
     * @参数
     */
    @Override
    public LimsJson getFileExport(HttpServletRequest request, HttpServletResponse response) {
        LimsJson limsJson = new LimsJson(1, "err");
        try {
            Map map = new HashMap();
            map.put("phase", "4");
            map.put("phases", "5");
            List<PartyMemberWithBLOBs> partyMemberWithBLOBs = partyMemberMapper.selectByPhases(map);
            for (PartyMemberWithBLOBs partyMembers :
                    partyMemberWithBLOBs) {
                PartyMemberWithBLOBs partyMember = partyMemberMapper.findPartyMember(partyMembers.getUserId(), null);
                if (partyMember != null) {
                    Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                    partyMembers.setDeptName(department.getDeptName());
                    OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                    partyMembers.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
                    if (partyMember.getPostId() != null) {
                        String postName = dutiesManagementMapper.getUserPostId(partyMember.getPostId()).getPostName();
                        partyMembers.setPostName(postName);
                    }
                    String attachmentId = partyMember.getAttachmentId();
                    String attachmentName = partyMember.getAttachmentName();
                    if (attachmentId != null && !"".equals(attachmentId)) {
                        partyMembers.setAttachmentId(initUrl(request, attachmentId, attachmentName));
                    }
                    String attachmentIdApply = partyMember.getAttachmentIdApply();
                    String attachmentNameApply = partyMember.getAttachmentNameApply();
                    if (attachmentIdApply != null && !"".equals(attachmentIdApply)) {
                        partyMembers.setAttachmentIdApply(initUrl(request, attachmentIdApply, attachmentNameApply));
                    }
                    String attachmentIdAudit = partyMember.getAttachmentIdAudit();
                    String attachmentNameAudit = partyMember.getAttachmentNameAudit();
                    if (attachmentIdAudit != null && !"".equals(attachmentIdAudit)) {
                        partyMembers.setAttachmentIdAudit(initUrl(request, attachmentIdAudit, attachmentNameAudit));
                    }
                    String attachmentIdPositive = partyMember.getAttachmentIdPositive();
                    String attachmentNamePositive = partyMember.getAttachmentNamePositive();
                    if (attachmentIdPositive != null && !"".equals(attachmentIdPositive)) {
                        partyMembers.setAttachmentIdPositive(initUrl(request, attachmentIdPositive, attachmentNamePositive));
                    }
                    String attachmentIdDevelop = partyMember.getAttachmentIdDevelop();
                    String attachmentNameDevelop = partyMember.getAttachmentNameDevelop();
                    if (attachmentIdDevelop != null && !"".equals(attachmentIdDevelop)) {
                        partyMembers.setAttachmentIdDevelop(initUrl(request, attachmentIdDevelop, attachmentNameDevelop));
                    }
                    String attachmentIdPrepare = partyMember.getAttachmentIdPrepare();
                    String attachmentNamePrepare = partyMember.getAttachmentNamePrepare();
                    if (attachmentIdPrepare != null && !"".equals(attachmentIdPrepare)) {
                        partyMembers.setAttachmentIdPrepare(initUrl(request, attachmentIdPrepare, attachmentNamePrepare));
                    }
                    String attachmentIdReceive = partyMember.getAttachmentIdReceive();
                    String attachmentNameReceive = partyMember.getAttachmentNameReceive();
                    if (attachmentIdReceive != null && !"".equals(attachmentIdReceive)) {
                        partyMembers.setAttachmentIdReceive(initUrl(request, attachmentIdReceive, attachmentNameReceive));
                    }
                    String attachmentIdMember = partyMember.getAttachmentIdMember();
                    String attachmentNameMember = partyMember.getAttachmentNameMember();
                    if (attachmentIdMember != null && !"".equals(attachmentIdMember)) {
                        partyMembers.setAttachmentNameMember(initUrl(request, attachmentIdMember, attachmentNameMember));
                    }
                    if (partyMember.getBirthday() != null) {
                        String beginDate = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(partyMember.getBirthday());
                        partyMembers.setBirthdayN(beginDate);
                    }
                    if (partyMember.getSex().equals("0")) {
                        partyMembers.setSex("男");
                    } else {
                        partyMembers.setSex("女");
                    }
                    if (partyMember.getDevelopPhase() != null) {
                        if (partyMember.getDevelopPhase().equals("0")) {
                            partyMembers.setDevelopPhase("申请入党");
                        }
                        if (partyMember.getDevelopPhase().equals("1")) {
                            partyMembers.setDevelopPhase("入党审核");
                        }
                        if (partyMember.getDevelopPhase().equals("2")) {
                            partyMembers.setDevelopPhase("积极分子");
                        }
                        if (partyMember.getDevelopPhase().equals("3")) {
                            partyMembers.setDevelopPhase("发展对象");
                        }
                        if (partyMember.getDevelopPhase().equals("4")) {
                            partyMembers.setDevelopPhase("预备党员未接收");
                        }
                        if (partyMember.getDevelopPhase().equals("5")) {
                            partyMembers.setDevelopPhase("预备党员已接收");
                        }
                        if (partyMember.getDevelopPhase().equals("6")) {
                            partyMembers.setDevelopPhase("正式党员");
                        }
                    }
                }
            }
            //导出excel头部标题
            HSSFWorkbook workbook1 = ExcelUtil.makeExcelHead("党员信息", 6);
            String[] secondTitles = {"入党申请人", "发展阶段", "性别", "出生日期", "民族", "职务", "单位（部门）", "所属党支部"};

            //设定二级标题
            HSSFWorkbook workbook2 = ExcelUtil.makeSecondHead(workbook1, secondTitles);

            String[] beanProperty = {"userName", "developPhase", "sex", "birthdayN", "familyName", "postName", "deptName", "parentPedtName"};

            //插入数据
            HSSFWorkbook workbook = ExcelUtil.exportExcelData(workbook2, partyMemberWithBLOBs, beanProperty);
            ServletOutputStream out = response.getOutputStream();

            String filename = "党员信息.xls";

            //文件名称
            filename = FileUtils.encodeDownloadFilename(filename, request.getHeader("user-agent"));
            response.setContentType("application/vnd.ms-excel");
            response.setHeader("content-disposition", "attachment;filename=" + filename);
            workbook.write(out);//写入数据
            out.close();//关闭资源
            limsJson.setMsg("导出数据成功");
            limsJson.setCode(0);
            limsJson.setFlag(0);
        } catch (Exception e) {
            limsJson.setFlag(1);
            limsJson.setMsg("导出数据失败，程序出现问题，请联系开发人员");
            e.printStackTrace();
        }
        return limsJson;
    }

    @Autowired
    private FlowTypeService flowTypeService;

    @Override
    public ToJson getTemp(HttpServletRequest request, Integer phase, String sqlType) {
        ToJson<PartyMemberWithBLOBs> toJson = new ToJson(1, "err");

        Map<String, Integer> map = new LinkedHashMap();
        Map sysPara = getSysPara();
        String flowId = "";
        String formId = "";
        ToJson<FlowTypeModel> flowTypeModelToJson = new ToJson();
        FlowTypeModel object = new FlowTypeModel();
        switch (phase) {
            case 0:
                flowId = (String) sysPara.get("APPLICATION_FORM");
                flowTypeModelToJson = flowTypeService.selectAllFlow(Integer.valueOf(flowId), request);
                object = (FlowTypeModel) flowTypeModelToJson.getObject();
                map.put(flowId, object.getFormId());
                break;
            case 2:
                flowId = (String) sysPara.get("ACTIVIST");
                flowTypeModelToJson = flowTypeService.selectAllFlow(Integer.valueOf(flowId), request);
                object = (FlowTypeModel) flowTypeModelToJson.getObject();
                map.put(flowId, object.getFormId());
                flowId = (String) sysPara.get("ACTIVIST_REPROT");
                flowTypeModelToJson = flowTypeService.selectAllFlow(Integer.valueOf(flowId), request);
                object = (FlowTypeModel) flowTypeModelToJson.getObject();
                map.put(flowId, object.getFormId());
                flowId = (String) sysPara.get("ACTIVIST_REPROT_FOUR");
                flowTypeModelToJson = flowTypeService.selectAllFlow(Integer.valueOf(flowId), request);
                object = (FlowTypeModel) flowTypeModelToJson.getObject();
                map.put(flowId, object.getFormId());
                break;
            case 3:
                flowId = (String) sysPara.get("DEVELOP_OBJ");
                flowTypeModelToJson = flowTypeService.selectAllFlow(Integer.valueOf(flowId), request);
                object = (FlowTypeModel) flowTypeModelToJson.getObject();
                map.put(flowId, object.getFormId());
                flowId = (String) sysPara.get("REVIEW");
                flowTypeModelToJson = flowTypeService.selectAllFlow(Integer.valueOf(flowId), request);
                object = (FlowTypeModel) flowTypeModelToJson.getObject();
                map.put(flowId, object.getFormId());

                break;
            case 4:
                flowId = (String) sysPara.get("EXAMINATION");
                flowTypeModelToJson = flowTypeService.selectAllFlow(Integer.valueOf(flowId), request);
                object = (FlowTypeModel) flowTypeModelToJson.getObject();
                map.put(flowId, object.getFormId());
                flowId = (String) sysPara.get("DISCUSS");
                flowTypeModelToJson = flowTypeService.selectAllFlow(Integer.valueOf(flowId), request);
                object = (FlowTypeModel) flowTypeModelToJson.getObject();
                map.put(flowId, object.getFormId());
                break;
            case 5:
                flowId = (String) sysPara.get("PROPARTY_REPORT");
                flowTypeModelToJson = flowTypeService.selectAllFlow(Integer.valueOf(flowId), request);
                object = (FlowTypeModel) flowTypeModelToJson.getObject();
                map.put(flowId, object.getFormId());
                flowId = (String) sysPara.get("PROPARTY_REPORT_FOUR");
                flowTypeModelToJson = flowTypeService.selectAllFlow(Integer.valueOf(flowId), request);
                object = (FlowTypeModel) flowTypeModelToJson.getObject();
                map.put(flowId, object.getFormId());
                flowId = (String) sysPara.get("REGULAR");
                flowTypeModelToJson = flowTypeService.selectAllFlow(Integer.valueOf(flowId), request);
                object = (FlowTypeModel) flowTypeModelToJson.getObject();
                map.put(flowId, object.getFormId());
                flowId = (String) sysPara.get("SELECT_PHASE");
                flowTypeModelToJson = flowTypeService.selectAllFlow(Integer.valueOf(flowId), request);
                object = (FlowTypeModel) flowTypeModelToJson.getObject();
                map.put(flowId, object.getFormId());
                break;
        }
        List list = new ArrayList();
        if (map.size() > 0) {
            Set<String> set = map.keySet();
            Iterator<String> iterator = set.iterator();
            while (iterator.hasNext()) {
                String next = iterator.next();
                ToJson<FlowTypeModel> flowTypeModelToJson1 = flowTypeService.selectAttachmentAndInstructions(Integer.valueOf(next), map.get(next), sqlType);
                FlowTypeModel object1 = (FlowTypeModel) flowTypeModelToJson1.getObject();
                list.add(object1);
            }
        }
        if (list.size() > 0) {
            toJson.setMsg("查询成功");
            toJson.setObj(list);

        } else {
            toJson.setMsg("数据为空");
        }
        return toJson;
    }

    @Override
    public ToJson selectDCandRP(HttpServletRequest request, String type, String userId) {
        ToJson<PartyMemberWithBLOBs> toJson = new ToJson(1, "err");
        try {
            Map sysPara = getSysPara();
            String flowId = "";
            Cookie redisSessionId = CookiesUtil.getCookieByName(request, "redisSessionId");
            Users user = SessionUtils.getSessionInfo(request.getSession(), Users.class, new Users(), redisSessionId);
            PartyMemberWithBLOBs partyMember = partyMemberMapper.findPartyMember(userId, null);
            if (partyMember.getDeptId() != null) {
                Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                partyMember.setDeptName(department.getDeptName());
            } else {
                partyMember.setDeptName("");
            }
            if (partyMember.getParentPedtId() != null) {
                OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
            } else {
                partyMember.setParentPedtName("");
            }
            if (partyMember.getPostId() != null) {
                String postName = dutiesManagementMapper.getUserPostId(partyMember.getPostId()).getPostName();
                partyMember.setPostName(postName);
            }
            if (type.equals("DC")) {//培养联系人
                flowId = (String) sysPara.get("DEVELOP_CONTACTS");
            }
            if (type.equals("RP")) {//入党介绍人
                flowId = (String) sysPara.get("RECOMMEND_PERSON");
            }
            //流程初始设置
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
            String time = simpleDateFormat.format(new Date());
            String tableName = "flow_data_" + flowId;
            String sqlType = "xoa" + (String) request.getSession().getAttribute(
                    "loginDateSouse");
            if (StringUtils.checkNull((String) request.getSession().getAttribute(
                    "loginDateSouse"))) {
                sqlType = "xoa1001";
            }
            //时间紧迫 先把整个方法引用过来 获取runId================
            ToJson<FlowFast> re = wfeFlowRunInfo.workFastAdd(user, Integer.valueOf(flowId), 1, "1", "", request, null, null, "0");
            FlowFast flowFast = (FlowFast) re.getObject();
            FlowRun flowRun = flowFast.getFlowRun();
            int runId = flowRun.getRunId();
            //================================================
            //拿到这个流程对应的表单==============================
            List<FlowFormType> allFlowForm = wfeFormTypeMapper.getFrombyFlowId(Integer.parseInt(flowId));
            FlowFormType flowFormType = allFlowForm.get(0);
            //获取表单信息
            Map<String, Object> param = new HashMap<String, Object>();
            param.put("tableName", tableName);
            //param.put("runId", 95);
            param.put("tableSchema", sqlType);
            Document document = HtmlUtil.getDom(flowFormType.getPrintModel());
            //这个map保存的是表单字段对应的中文
            Map<String, Object> mapForm = new HashMap<String, Object>();
            List<String> columns = workMapper.showColumns(param);
            //没有表则新建
            if (columns.size() == 0) {
                List<String> list = HtmlUtil.getAllData(document);
                param.put("keys", list);
                //读取配置文件
                ResourceBundle rb = ResourceBundle.getBundle("jdbc-sql");
                String databaseId = rb.getString("driverClassName");
                if (databaseId.contains("oracle")) {
                    workMapper.createSequence(param);
                }
                workMapper.createTable(param);
                columns = workMapper.showColumns(param);
            } else {//检查是否有新增加的列
                addColum(document, columns, tableName);
                columns = workMapper.showColumns(param);
            }
            List vList = new ArrayList();
            for (int i = 0, size = columns.size(); i < size; i++) {
                String name = HtmlUtil.getDocumentTitle(document, columns.get(i));
                String data = HtmlUtil.getDocumentName(document, name);
                if (data != null) {
                    vList.add(data);
                }
                mapForm.put(name, data);
            }
            HashMap fD = new HashMap();
            List<String> key = new ArrayList<String>();
            List<Object> value = new ArrayList<Object>();
            if (type.equals("DC")) {
                partyMember.setRunId(runId);
                partyMember.setState("0");
                partyMemberMapper.updateByPrimaryKeySelective(partyMember);
                FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
                if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                    Integer flowAutoNum = flowTypeModel.getAutoNum();
                    key.add("FLOW_AUTO_NUM");
                    value.add(flowAutoNum);
                }
                key.add("RUN_ID");
                value.add(runId);
                key.add("RUN_NAME");
                value.add(flowTypeModel.getFlowName() + " " + time);
                key.add("BEGIN_TIME");
                value.add(time);
                key.add("BEGIN_USER");
                value.add(partyMember.getUserId());
                key.add("FLOW_AUTO_NUM_YEAR");
                value.add(0);
                key.add("FLOW_AUTO_NUM_MONTH");
                value.add(0);
                key.add(String.valueOf(mapForm.get("确定培养联系人时间  ")));
                if (partyMember.getActivistsTime() != null) {
                    value.add(partyMember.getActivistsTime());
                } else {
                    value.add("");
                }

                key.add(String.valueOf(mapForm.get("所属党支部名称")));
                value.add(partyMember.getParentPedtName());
                key.add(String.valueOf(mapForm.get("姓名")));
                value.add(partyMember.getParentPedtName());
                key.add(String.valueOf(mapForm.get("单位（部门）")));
                value.add(partyMember.getParentPedtName());
                //========================================================
                key.add(String.valueOf(mapForm.get("现培养联系人姓名")));
                if (partyMember.getDevelopContacts() != null) {
                    String[] split = partyMember.getDevelopContacts().split(",");
                    if (split.length > 0) {
                        String na = "";
                        String id = "";
                        String dc = "";
                        for (int i = 0; i < split.length; i++) {
                            Users usersByuserId = usersMapper.findUsersByuserId(split[i]);
                            //id,id,|名字,名字,
                            id += usersByuserId.getUserId() + ",";
                            na += usersByuserId.getUserName() + ",";
                        }
                        dc = id + "|" + na;
                        value.add(dc);
                    } else {
                        value.add("");
                    }
                } else {
                    value.add("");
                }
                for (int i = 0; i < columns.size(); i++) {
                    if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                        key.add(String.valueOf(columns.get(i)));
                        value.add("");
                    }
                }
                fD.put("tableName", tableName);
                fD.put("keys", key);
                fD.put("values", value);
                workMapper.insert(fD);
            }
            if (type.equals("RP")) {
                partyMember.setRunId(runId);
                partyMember.setState("0");
                partyMemberMapper.updateByPrimaryKeySelective(partyMember);
                FlowTypeModel flowTypeModel = wfeFlowTypeModelMapper.queryOneObject(Integer.parseInt(flowId));
                if (flowTypeModel.getAutoNum() != null && flowTypeModel.getAutoNum() != 0) {
                    Integer flowAutoNum = flowTypeModel.getAutoNum();
                    key.add("FLOW_AUTO_NUM");
                    value.add(flowAutoNum);
                }
                key.add("RUN_ID");
                value.add(runId);
                key.add("RUN_NAME");
                value.add(flowTypeModel.getFlowName() + " " + time);
                key.add("BEGIN_TIME");
                value.add(time);
                key.add("BEGIN_USER");
                value.add(partyMember.getUserId());
                key.add("FLOW_AUTO_NUM_YEAR");
                value.add(0);
                key.add("FLOW_AUTO_NUM_MONTH");
                value.add(0);
                //DEVELOP_TIME
                key.add(String.valueOf(mapForm.get("确定培养联系人时间  ")));
                if (partyMember.getDevelopTime() != null) {
                    value.add(partyMember.getDevelopTime());
                } else {
                    value.add("");
                }

                key.add(String.valueOf(mapForm.get("所属党支部名称")));
                value.add(partyMember.getParentPedtName());
                key.add(String.valueOf(mapForm.get("姓名")));
                value.add(partyMember.getParentPedtName());
                key.add(String.valueOf(mapForm.get("单位（部门）")));
                value.add(partyMember.getParentPedtName());
                //========================================================
                key.add(String.valueOf(mapForm.get("现入党介绍人姓名")));
                if (partyMember.getRecommendPerson() != null) {
                    String[] split = partyMember.getRecommendPerson().split(",");
                    if (split.length > 0) {
                        String na = "";
                        String id = "";
                        String dc = "";
                        for (int i = 0; i < split.length; i++) {
                            Users usersByuserId = usersMapper.findUsersByuserId(split[i]);
                            //id,id,|名字,名字,
                            id += usersByuserId.getUserId() + ",";
                            na += usersByuserId.getUserName() + ",";
                        }
                        dc = id + "|" + na;
                        value.add(dc);
                    } else {
                        value.add("");
                    }
                } else {
                    value.add("");
                }
                for (int i = 0; i < columns.size(); i++) {
                    if (!key.contains(columns.get(i)) && !columns.get(i).equals("ID")) {
                        key.add(String.valueOf(columns.get(i)));
                        value.add("");
                    }
                }
                fD.put("tableName", tableName);
                fD.put("keys", key);
                fD.put("values", value);
                workMapper.insert(fD);
            }
            HashMap result = new HashMap();
            result.put("flowId", flowId);
            result.put("runId", runId);
            toJson.setObject(result);
            toJson.setMsg("成功");
            toJson.setFlag(0);
        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg("党建基础设置错误");
        }
        return toJson;
    }

    //根据用户选择所属党支部类型查询
    @Override
    public ToJson getPartyMemberList(String parentPedtId, String phase1, String phase2, Integer page, Integer limit) {
        ToJson toJson = new ToJson(1, "err");
        Map map = new HashMap();
        Map map1 = new HashMap();
        List list = new ArrayList();
        int a = 0;
        try {
            if (phase1.equals("4") && phase2.equals("5")) {
                map.put("parentPedtId", parentPedtId);
                map.put("phase1", phase1);
                List<PartyMemberWithBLOBs> partyMemberList = partyMemberMapper.getPartyMemberList(map);
                if (partyMemberList.size() > 0 && partyMemberList != null) {
                    for (PartyMemberWithBLOBs partyMember :
                            partyMemberList) {
                        Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                        partyMember.setDeptName(department.getDeptName());
                        OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                        partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
                        list.add(partyMember);
                        a++;
                    }
                }
                map1.put("parentPedtId", parentPedtId);
                map1.put("phase2", phase2);
                List<PartyMemberWithBLOBs> partyMember = partyMemberMapper.getPartyMemberList(map1);
                if (partyMember.size() > 0 && partyMember != null) {
                    for (PartyMemberWithBLOBs partyMembers :
                            partyMember) {
                        Department department = departmentMapper.selectByDeptId(partyMembers.getDeptId());
                        partyMembers.setDeptName(department.getDeptName());
                        OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMembers.getParentPedtId());
                        partyMembers.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
                        list.add(partyMembers);
                        a++;
                    }
                }
                if (a > 0) {
                    toJson.setTotleNum(list.size());
                    toJson.setObj(list);
                    toJson.setFlag(0);
                    toJson.setMsg("查询成功");
                } else {
                    toJson.setFlag(0);
                    toJson.setMsg("暂无数据");
                }
            } else {
                map.put("parentPedtId", parentPedtId);
                map.put("phase1", phase1);
                map.put("phase2", phase2);
                List<PartyMemberWithBLOBs> partyMemberList = partyMemberMapper.getPartyMemberList(map);
                if (partyMemberList.size() > 0 && partyMemberList != null) {
                    for (PartyMemberWithBLOBs partyMember :
                            partyMemberList) {
                        Department department = departmentMapper.selectByDeptId(partyMember.getDeptId());
                        partyMember.setDeptName(department.getDeptName());
                        OrgDepartmentWithBLOBs orgDepartmentWithBLOBs = orgDepartmentMapper.selectByPrimaryKeyById(partyMember.getParentPedtId());
                        partyMember.setParentPedtName(orgDepartmentWithBLOBs.getOrgDeptName());
                    }
                    toJson.setTotleNum(partyMemberList.size());
                    toJson.setObj(partyMemberList);
                    toJson.setFlag(0);
                    toJson.setMsg("查询成功");
                } else {
                    toJson.setFlag(0);
                    toJson.setMsg("暂无数据");
                }
            }
        } catch (Exception e) {
            toJson.setFlag(1);
            toJson.setMsg("数据查询失败，程序出现问题，请联系开发人员");
            e.printStackTrace();
        }
        return toJson;
    }

    @Override
    public ToJson updateTR(HttpServletRequest request, String url, Integer type, Integer n) {
        ToJson toJson = new ToJson(1, "err");
        try {
            //根据当前登录人拿到他的党员资料
            Cookie redisSessionId = CookiesUtil.getCookieByName(request, "redisSessionId");
            Users user = SessionUtils.getSessionInfo(request.getSession(), Users.class, new Users(), redisSessionId);
            PartyMemberWithBLOBs partyMember = partyMemberMapper.findPartyMember(user.getUserId(), null);
            if (partyMember == null) {
                toJson.setMsg("保存失败,请确认当前党员信息");
                return toJson;
            }
            String developPhase = partyMember.getDevelopPhase();
            //定义2个字符串,用于拼接
            String attchId = "";
            String attchName = "";
            //从积极分子到预备党员未接收阶段
            boolean b = developPhase.equals("2") || developPhase.equals("3") || developPhase.equals("4");
            if (b) {
                attchId = partyMember.getAttachmentIdReport();
                attchName = partyMember.getAttachmentNameReport();
            } else { //从预备党员接收阶段
                attchId = partyMember.getAttachmentIdThoughtReport();
                attchName = partyMember.getAttachmentNameThoughtReport();
            }
            //判断新增还是删除.type=1是删除,type=0是新增
            if (type == 0) {//新增
                if (url != null && !"".equals(url)) {
                    String[] split = url.split("&");
                    Map<String, String> hashMap = new HashMap();
                    for (String str : split) {
                        String[] split1 = str.split("=");
                        hashMap.put(String.valueOf(split1[0]), String.valueOf(split1[1]));
                    }
                    String id = hashMap.get("AID") + "@" + hashMap.get("YM") + "_" + hashMap.get("ATTACHMENT_ID") + "*";
                    String name = hashMap.get("ATTACHMENT_NAME") + "*";
                    if (attchId == null || "".equals(attchId)) {
                        attchId = id;
                        attchName = name;
                    } else {
                        attchId = attchId + "," + id;
                        attchName = attchName + "," + name;
                    }

                    if (b) {
                        partyMember.setAttachmentIdReport(attchId);
                        partyMember.setAttachmentNameReport(attchName);
                    } else {
                        partyMember.setAttachmentIdThoughtReport(attchId);
                        partyMember.setAttachmentNameThoughtReport(attchName);
                    }
                }
            } else if (type == 1) {//删除
                String[] split = attchId.split(",");
                String newId = "";
                String[] split1 = attchName.split(",");
                String newName = "";
                for (int i = 0; i < split.length; i++) {
                    if (i != n) {
                        newId += split[i] + ",";
                        newName += split1[i] + ",";
                    }
                }
                if (!newId.equals("")) {
                    newId = newId.substring(0, newId.length() - 1);
                    newName = newName.substring(0, newName.length() - 1);
                }

                if (b) {
                    partyMember.setAttachmentIdReport(newId);
                    partyMember.setAttachmentNameReport(newName);
                } else {
                    partyMember.setAttachmentIdThoughtReport(newId);
                    partyMember.setAttachmentNameThoughtReport(newName);
                }
            }
            int i = partyMemberMapper.updateByPrimaryKeySelective(partyMember);
            if (i > 0) {
                toJson.setMsg("修改成功");
            } else {
                toJson.setMsg("修改失败");
            }
            toJson.setObject(partyMember);
        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg(e.getMessage());
        }
        return toJson;
    }

    @Override
    @Transactional(rollbackFor = RuntimeException.class)
    public ToJson initOne(Integer flowSort) {
        ToJson toJson = new ToJson(1, "err");
        try {
            //- -验证是不是开发人员使用,用神奇的密码控制(WYSCZGLC345)
            FlowSort flowSort1 = flowSortMapper.selectByPrimaryKey(flowSort);
            if (flowSort1 != null && flowSort1.getSortName() != null && !flowSort1.getSortName().equals("")) {
                if (!flowSort1.getSortName().equals("WYSCZGLC345")) {
                    toJson.setMsg("违规操作");
                    return toJson;
                }
            } else {
                toJson.setMsg("违规操作");
                return toJson;
            }
            //查询所有流程
            List<FlowTypeModel> datas = flowTypeModelMapper.selectBySortid(flowSort);
            //遍历流程,拿到流程id FLOW_ID 并删除其所有数据
            for (FlowTypeModel f : datas) {
                //流程Id
                Integer flowId = f.getFlowId();
                //获取request 添加日志用
                HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
                FlowManageLog flowManageLog = wfeLog.getFlowManageLog(request);
                /* 添加工作流设计日志---删除流程所有数据*/
                flowManageLog.setFlowId(flowId);
                flowManageLog.setType(Constant.DESIGNTYPE12);
                wfeLog.addFlowManageLog(flowManageLog);

                processMapper.deleteByFlowId(flowId);
                int i = flowTypeModelMapper.deleteByFlowId(flowId);
                List<Integer> runIds = flowRunMapper.getRunIdsByFlowId(flowId);
                if (runIds != null && runIds.size() > 0) {
                    flowRunMapper.deleteByFlowId(flowId);
                    flowRunPrcsMapper.deleteByRunIds(runIds);
                    flowAssignMapper.deleteFlowAssign(runIds);
                }
            }
            flowSortMapper.deleteByPrimaryKey(flowSort);
            toJson.setMsg("流程清理成功");
            toJson.setFlag(0);
        } catch (Exception e) {
            e.printStackTrace();
            toJson.setMsg(e.getMessage());
            throw new RuntimeException();
        }
        return toJson;
    }

    @Override
    public ToJson updatePartyMemberFlowable(HttpServletRequest request) {
        ToJson toJson = new ToJson(1, "err");
        try {
            Properties props = Resources.getResourceAsProperties("jdbc-sql.properties");
            String oid = (String) request.getSession().getAttribute("loginDateSouse");
            if (oid == null) {
                oid = "1001";
            }
            String url = props.getProperty("url" + oid);
            String driver = props.getProperty("driverClassName");
            String username = props.getProperty("uname" + oid);
            String password = props.getProperty("password" + oid);
            Class.forName(driver).newInstance();
            Connection conn = (Connection) DriverManager.getConnection(url, username, password);
            try {

                Map<String, String> map = new HashMap<>();
                String sql = "";
                Statement st = conn.createStatement();
                /*
                 * 党建表单类型
                 */
                String sortId = Verification.CheckIsExistForm_sort1(conn, driver, url, username, password, "党建");
                //如果为空需要新建一个
                if (StringUtils.checkNull(sortId)) {
                    sql = "INSERT INTO `form_sort`(`SORT_NO`, `SORT_NAME`, `SORT_PARENT`, `HAVE_CHILD`, `DEPT_ID`) VALUES ( 0, '党建', 0, '0', 0);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    sortId = Verification.CheckIsExistForm_sort1(conn, driver, url, username, password, "党建");
                }
                /*
                 * 党建流程类型
                 */
                String flowSortId = Verification.CheckIsExistFlow_sort(conn, driver, url, username, password, "党建");
                //如果为空需要新建一个
                if (StringUtils.checkNull(flowSortId)) {
                    sql = "INSERT INTO `flow_sort`(`SORT_NO`, `SORT_NAME`, `DEPT_ID`, `SORT_PARENT`, `HAVE_CHILD`, `SORT_MAIN_TYPE`, `SORT_DETAIL_TYPE`) VALUES (0, '党建', 0, 0, '0', '', '');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowSortId = Verification.CheckIsExistFlow_sort(conn, driver, url, username, password, "党建");
                }
                /*
                 * 需要更新的工作流
                 */
                String formName = "申请入党";
                String formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO  `flow_form_type`( `FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '" + formName + "', '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">申请入党</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">姓名<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"姓名\\\" id=\\\"DATA_2\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">发展阶段</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><select name=\\\"DATA_3\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_3\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"申请入党\\\">申请入党</option><option value=\\\"积极分子\\\">积极分子</option><option value=\\\"发展对象\\\">发展对象</option><option value=\\\"预备党员\\\">预备党员</option><option value=\\\"正式党员\\\" selected=\\\"selected\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">性别<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" title=\\\"性别\\\" type=\\\"radio\\\" checked=\\\"checked\\\" radio_field=\\\"男`女`\\\" orgchecked=\\\"\\\" classname=\\\"radio\\\" class=\\\"form_item\\\" data-type=\\\"radio\\\" id=\\\"DATA_6\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">出生日期<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_8\\\" title=\\\"出生日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">民族<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_9\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"民族\\\" value=\\\"\\\" id=\\\"DATA_9\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">职务<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_10\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"职务\\\" value=\\\"\\\" id=\\\"DATA_10\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">单位（部门）<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_29\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"部门\\\" id=\\\"DATA_29\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_30\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"党支部\\\" id=\\\"DATA_30\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党申请书</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-size:16px;font-family:等线\\\">附件：<img name=\\\"DATA_31\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党申请书\\\" id=\\\"DATA_31\\\" width=\\\"50\\\" height=\\\"50\\\"/></span>&nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">提交时间</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_16\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"提交时间\\\" id=\\\"DATA_16\\\" datafld=\\\"SYS_DATETIME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;margin-left:5px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-family:微软雅黑, Microsoft YaHei\\\"><span style=\\\"font-size: 18px;\\\">入党申请人谈话意见</span></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><span style=\\\"font-size:16px;font-family:等线\\\">附件</span>：<img name=\\\"DATA_32\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"申请人谈话意见\\\" id=\\\"DATA_32\\\" width=\\\"50\\\" height=\\\"50\\\"/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;签字：<input name=\\\"DATA_18\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"签字\\\" id=\\\"DATA_18\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"200\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\" style=\\\"width: 200px; font-size: 16px; height: 30px;\\\" orgsignimg=\\\"0\\\"/><input name=\\\"DATA_41\\\" title=\\\"时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_41\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr></tbody></table><p><br/></p>', '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">申请入党</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">姓名<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"姓名\\\" id=\\\"DATA_2\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">发展阶段</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><select name=\\\"DATA_3\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_3\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"申请入党\\\">申请入党</option><option value=\\\"积极分子\\\">积极分子</option><option value=\\\"发展对象\\\">发展对象</option><option value=\\\"预备党员\\\">预备党员</option><option value=\\\"正式党员\\\" selected=\\\"selected\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">性别<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" title=\\\"性别\\\" type=\\\"radio\\\" checked=\\\"checked\\\" radio_field=\\\"男`女`\\\" orgchecked=\\\"\\\" classname=\\\"radio\\\" class=\\\"form_item\\\" data-type=\\\"radio\\\" id=\\\"DATA_6\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">出生日期<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_8\\\" title=\\\"出生日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">民族<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_9\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"民族\\\" value=\\\"\\\" id=\\\"DATA_9\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">职务<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_10\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"职务\\\" value=\\\"\\\" id=\\\"DATA_10\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">单位（部门）<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_29\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"部门\\\" id=\\\"DATA_29\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_30\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"党支部\\\" id=\\\"DATA_30\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党申请书</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-size:16px;font-family:等线\\\">附件：<img name=\\\"DATA_31\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党申请书\\\" id=\\\"DATA_31\\\" width=\\\"50\\\" height=\\\"50\\\"/></span>&nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">提交时间</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_16\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"提交时间\\\" id=\\\"DATA_16\\\" datafld=\\\"SYS_DATETIME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;margin-left:5px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-family:微软雅黑, Microsoft YaHei\\\"><span style=\\\"font-size: 18px;\\\">入党申请人谈话意见</span></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><span style=\\\"font-size:16px;font-family:等线\\\">附件</span>：<img name=\\\"DATA_32\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"申请人谈话意见\\\" id=\\\"DATA_32\\\" width=\\\"50\\\" height=\\\"50\\\"/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;签字：<input name=\\\"DATA_18\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"签字\\\" id=\\\"DATA_18\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"200\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\" style=\\\"width: 200px; font-size: 16px; height: 30px;\\\" orgsignimg=\\\"0\\\"/><input name=\\\"DATA_41\\\" title=\\\"时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_41\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr></tbody></table><p><br/></p>', 0, '<script>\\n\\n\\n         if($(\\\"#DATA_18\\\").attr(\\\"disabled\\\") != \\\"disabled\\\"){\\n            $(\\\".rig_h1\\\").click(function(){\\n                var dateString1 = $(\\\"#DATA_16\\\").val()\\n                var dateString2 = $(\\\"#DATA_41\\\").val()\\n\\n                getDaysBetween(dateString1,dateString2)\\n                function  getDaysBetween(dateString1,dateString2){\\n                    var  startDate = Date.parse(dateString1);\\n                    var  endDate = Date.parse(dateString2);\\n                    var days=(endDate - startDate)/(1*24*60*60*1000);\\n                    return  days;\\n\\n                }\\n                var day =  getDaysBetween(dateString1,dateString2);\\n                if(day >= 30){\\n\t\t\t\t\t\\n                    layer.msg(\\\"距离提交入党申请书时间大于30天不可以转交！\\\", {icon: 2});\\n\\n                    return false\\n                }\\n            })\\n\\n        }\\n</script>', '', 41, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE  `flow_form_type` SET `FORM_NAME` = '" + formName + "', `PRINT_MODEL` = '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">申请入党</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">姓名<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"姓名\\\" id=\\\"DATA_2\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">发展阶段</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><select name=\\\"DATA_3\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_3\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"申请入党\\\">申请入党</option><option value=\\\"积极分子\\\">积极分子</option><option value=\\\"发展对象\\\">发展对象</option><option value=\\\"预备党员\\\">预备党员</option><option value=\\\"正式党员\\\" selected=\\\"selected\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">性别<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" title=\\\"性别\\\" type=\\\"radio\\\" checked=\\\"checked\\\" radio_field=\\\"男`女`\\\" orgchecked=\\\"\\\" classname=\\\"radio\\\" class=\\\"form_item\\\" data-type=\\\"radio\\\" id=\\\"DATA_6\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">出生日期<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_8\\\" title=\\\"出生日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">民族<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_9\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"民族\\\" value=\\\"\\\" id=\\\"DATA_9\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">职务<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_10\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"职务\\\" value=\\\"\\\" id=\\\"DATA_10\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">单位（部门）<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_29\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"部门\\\" id=\\\"DATA_29\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_30\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"党支部\\\" id=\\\"DATA_30\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党申请书</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-size:16px;font-family:等线\\\">附件：<img name=\\\"DATA_31\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党申请书\\\" id=\\\"DATA_31\\\" width=\\\"50\\\" height=\\\"50\\\"/></span>&nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">提交时间</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_16\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"提交时间\\\" id=\\\"DATA_16\\\" datafld=\\\"SYS_DATETIME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;margin-left:5px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-family:微软雅黑, Microsoft YaHei\\\"><span style=\\\"font-size: 18px;\\\">入党申请人谈话意见</span></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><span style=\\\"font-size:16px;font-family:等线\\\">附件</span>：<img name=\\\"DATA_32\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"申请人谈话意见\\\" id=\\\"DATA_32\\\" width=\\\"50\\\" height=\\\"50\\\"/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;签字：<input name=\\\"DATA_18\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"签字\\\" id=\\\"DATA_18\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"200\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\" style=\\\"width: 200px; font-size: 16px; height: 30px;\\\" orgsignimg=\\\"0\\\"/><input name=\\\"DATA_41\\\" title=\\\"时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_41\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr></tbody></table><p><br/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">申请入党</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">姓名<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"姓名\\\" id=\\\"DATA_2\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">发展阶段</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><select name=\\\"DATA_3\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_3\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"申请入党\\\">申请入党</option><option value=\\\"积极分子\\\">积极分子</option><option value=\\\"发展对象\\\">发展对象</option><option value=\\\"预备党员\\\">预备党员</option><option value=\\\"正式党员\\\" selected=\\\"selected\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">性别<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" title=\\\"性别\\\" type=\\\"radio\\\" checked=\\\"checked\\\" radio_field=\\\"男`女`\\\" orgchecked=\\\"\\\" classname=\\\"radio\\\" class=\\\"form_item\\\" data-type=\\\"radio\\\" id=\\\"DATA_6\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">出生日期<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_8\\\" title=\\\"出生日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">民族<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_9\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"民族\\\" value=\\\"\\\" id=\\\"DATA_9\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">职务<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_10\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"职务\\\" value=\\\"\\\" id=\\\"DATA_10\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">单位（部门）<br/></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_29\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"部门\\\" id=\\\"DATA_29\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_30\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"党支部\\\" id=\\\"DATA_30\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党申请书</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-size:16px;font-family:等线\\\">附件：<img name=\\\"DATA_31\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党申请书\\\" id=\\\"DATA_31\\\" width=\\\"50\\\" height=\\\"50\\\"/></span>&nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">提交时间</span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_16\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"提交时间\\\" id=\\\"DATA_16\\\" datafld=\\\"SYS_DATETIME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;margin-left:5px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-family:微软雅黑, Microsoft YaHei\\\"><span style=\\\"font-size: 18px;\\\">入党申请人谈话意见</span></span>\\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><span style=\\\"font-size:16px;font-family:等线\\\">附件</span>：<img name=\\\"DATA_32\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"申请人谈话意见\\\" id=\\\"DATA_32\\\" width=\\\"50\\\" height=\\\"50\\\"/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;签字：<input name=\\\"DATA_18\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"签字\\\" id=\\\"DATA_18\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"200\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\" style=\\\"width: 200px; font-size: 16px; height: 30px;\\\" orgsignimg=\\\"0\\\"/><input name=\\\"DATA_41\\\" title=\\\"时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_41\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr></tbody></table><p><br/></p>', `DEPT_ID` = 0, `SCRIPT` = '<script>\\n\\n\\n         if($(\\\"#DATA_18\\\").attr(\\\"disabled\\\") != \\\"disabled\\\"){\\n            $(\\\".rig_h1\\\").click(function(){\\n                var dateString1 = $(\\\"#DATA_16\\\").val()\\n                var dateString2 = $(\\\"#DATA_41\\\").val()\\n\\n                getDaysBetween(dateString1,dateString2)\\n                function  getDaysBetween(dateString1,dateString2){\\n                    var  startDate = Date.parse(dateString1);\\n                    var  endDate = Date.parse(dateString2);\\n                    var days=(endDate - startDate)/(1*24*60*60*1000);\\n                    return  days;\\n\\n                }\\n                var day =  getDaysBetween(dateString1,dateString2);\\n                if(day >= 30){\\n\t\t\t\t\t\\n                    layer.msg(\\\"距离提交入党申请书时间大于30天不可以转交！\\\", {icon: 2});\\n\\n                    return false\\n                }\\n            })\\n\\n        }\\n</script>', `CSS` = '', `ITEM_MAX` = 41, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '" + formId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                String flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO  `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 328, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', ' ', ' ', '', '', '', 1, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', '1', NULL, '1', 0, '0', NULL, '0', '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE  `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = '" + flowSortId + "', `AUTO_NAME` = '', `AUTO_NUM` = 328, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = ' ', `ATTACHMENT_NAME` = ' ', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 1, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = '1', `TO_NOTIFY_YN` = NULL, `document_layout` = '1', `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = '0', `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 1, 0, '入党申请人', '', '[C@],[A@],出生日期,民族,入党申请书,提交时间,支部书记（组织委员）预设', '', '民族,入党申请书,', 'ALL_DEPT', '', '2,', 95, 174, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 1, '[{\\\"FILE_PRIV_DATA_31\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_32\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 2, 0, '支部书记', '', '申请人谈话意见,签字,时间,审批意见,意见', '', '申请人谈话意见,时间,审批意见,', 'ALL_DEPT', '', '0,', 287, 191, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '1', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 1, '[{\\\"FILE_PRIV_DATA_31\\\":[\\\"4\\\",\\\"1\\\"]},{\\\"FILE_PRIV_DATA_32\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, '0', 0, '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO  `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ('" + flowId + "', '入党申请', '入党申请', 'party_member', '', 0, '提交时间=>APPLY_TIME,发展阶段=>DEVELOP_PHASE,申请人谈话意见=>ATT_URL1,党支部=>PARENT_PEDT_ID,入党申请书=>ATT_URL,性别=>SEX,部门=>USER_NAME,民族=>FAMILY_NAME,签字=>SIGN,出生日期=>BIRTHDAY,职务=>POST_ID,审批意见=>APPROVAL', '', '', '1', 110, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                String hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = '" + flowId + "';";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO  `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '入党申请', '" + flowId + "', 1, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n" +
                        "INSERT INTO  `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '提交申请', '" + flowId + "', 2, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("APPLICATION_FORM", flowId);
                /*
                 * 需要更新的工作流
                 */
                formName = "确定入党积极分子";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO  `flow_form_type`( `FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '" + formName + "', '<p style=\\\"text-align: center; line-height: 4em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 36px;\\\">确定入党积极分子</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 951px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党申请人</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_2\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"入党申请人\\\" id=\\\"DATA_2\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党申请时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_4\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"入党申请时间\\\" id=\\\"DATA_4\\\" datafld=\\\"SYS_DATETIME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_6\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"单位（部门）\\\" id=\\\"DATA_6\\\" datafld=\\\"SYS_DEPTNAME_SHORT\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">党员推荐票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_9\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"党员推荐票文件\\\" id=\\\"DATA_9\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_10\\\" title=\\\"党员推荐票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_10\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">党员推荐汇总票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_11\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"党员推荐汇总票文件\\\" id=\\\"DATA_11\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_13\\\" title=\\\"党员推荐汇总票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_13\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">群团（工会/团支部）</span></p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">推优表</span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_15\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"群团（工会/团支部）推优表文件\\\" id=\\\"DATA_15\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"群团（工会/团支部）推优表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支委会会议记录</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><img name=\\\"DATA_18\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议记录文件\\\" id=\\\"DATA_18\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp;</p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">确认积极分子时间</span><input name=\\\"DATA_42\\\" title=\\\"确认积极分子时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_42\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支委会会议决议</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_26\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议决议文件\\\" id=\\\"DATA_26\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" title=\\\"支委会会议决议日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党积极分子</span></p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">备案报告</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_28\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党积极分子备案报告\\\" id=\\\"DATA_28\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_29\\\" title=\\\"入党积极分子备案报告日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_29\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党积极分子</span></p><p style=\\\"line-height: 27px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; background-color: transparent;\\\">备案表</span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_30\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党积极分子备案表\\\" id=\\\"DATA_30\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_31\\\" title=\\\"入党积极分子备案表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_31\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">培养联系人登记表</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><img name=\\\"DATA_33\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"培养联系人登记表文件\\\" id=\\\"DATA_33\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_32\\\" title=\\\"培养联系人登记表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_32\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width: 200px; height: 30px; font-size: 16px;\\\"/></p><p><span style=\\\"font-size:16px;font-family:等线\\\">培养联系人姓名：<textarea name=\\\"DATA_45\\\" id=\\\"DATA_45\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"培养联系人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></span></p></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 等线; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">&nbsp;</span><span style=\\\"text-align: -webkit-center; white-space: normal; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支部书记签字</span></td><td valign=\\\"top\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_39\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_39\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr></tbody></table><p><br/></p>', '<p style=\\\"text-align: center; line-height: 4em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 36px;\\\">确定入党积极分子</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 951px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党申请人</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_2\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"入党申请人\\\" id=\\\"DATA_2\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党申请时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_4\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"入党申请时间\\\" id=\\\"DATA_4\\\" datafld=\\\"SYS_DATETIME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_6\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"单位（部门）\\\" id=\\\"DATA_6\\\" datafld=\\\"SYS_DEPTNAME_SHORT\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">党员推荐票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_9\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"党员推荐票文件\\\" id=\\\"DATA_9\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_10\\\" title=\\\"党员推荐票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_10\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">党员推荐汇总票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_11\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"党员推荐汇总票文件\\\" id=\\\"DATA_11\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_13\\\" title=\\\"党员推荐汇总票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_13\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">群团（工会/团支部）</span></p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">推优表</span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_15\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"群团（工会/团支部）推优表文件\\\" id=\\\"DATA_15\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"群团（工会/团支部）推优表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支委会会议记录</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><img name=\\\"DATA_18\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议记录文件\\\" id=\\\"DATA_18\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp;</p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">确认积极分子时间</span><input name=\\\"DATA_42\\\" title=\\\"确认积极分子时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_42\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支委会会议决议</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_26\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议决议文件\\\" id=\\\"DATA_26\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" title=\\\"支委会会议决议日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党积极分子</span></p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">备案报告</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_28\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党积极分子备案报告\\\" id=\\\"DATA_28\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_29\\\" title=\\\"入党积极分子备案报告日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_29\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党积极分子</span></p><p style=\\\"line-height: 27px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; background-color: transparent;\\\">备案表</span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_30\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党积极分子备案表\\\" id=\\\"DATA_30\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_31\\\" title=\\\"入党积极分子备案表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_31\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">培养联系人登记表</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><img name=\\\"DATA_33\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"培养联系人登记表文件\\\" id=\\\"DATA_33\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_32\\\" title=\\\"培养联系人登记表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_32\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width: 200px; height: 30px; font-size: 16px;\\\"/></p><p><span style=\\\"font-size:16px;font-family:等线\\\">培养联系人姓名：<textarea name=\\\"DATA_45\\\" id=\\\"DATA_45\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"培养联系人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></span></p></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 等线; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">&nbsp;</span><span style=\\\"text-align: -webkit-center; white-space: normal; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支部书记签字</span></td><td valign=\\\"top\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_39\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_39\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr></tbody></table><p><br/></p>', 0, '', '', 45, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE  `flow_form_type` SET `FORM_NAME` = '" + formName + "', `PRINT_MODEL` = '<p style=\\\"text-align: center; line-height: 4em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 36px;\\\">确定入党积极分子</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 951px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党申请人</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_2\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"入党申请人\\\" id=\\\"DATA_2\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党申请时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_4\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"入党申请时间\\\" id=\\\"DATA_4\\\" datafld=\\\"SYS_DATETIME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_6\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"单位（部门）\\\" id=\\\"DATA_6\\\" datafld=\\\"SYS_DEPTNAME_SHORT\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">党员推荐票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_9\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"党员推荐票文件\\\" id=\\\"DATA_9\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_10\\\" title=\\\"党员推荐票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_10\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">党员推荐汇总票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_11\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"党员推荐汇总票文件\\\" id=\\\"DATA_11\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_13\\\" title=\\\"党员推荐汇总票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_13\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">群团（工会/团支部）</span></p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">推优表</span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_15\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"群团（工会/团支部）推优表文件\\\" id=\\\"DATA_15\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"群团（工会/团支部）推优表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支委会会议记录</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><img name=\\\"DATA_18\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议记录文件\\\" id=\\\"DATA_18\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp;</p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">确认积极分子时间</span><input name=\\\"DATA_42\\\" title=\\\"确认积极分子时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_42\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支委会会议决议</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_26\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议决议文件\\\" id=\\\"DATA_26\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" title=\\\"支委会会议决议日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党积极分子</span></p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">备案报告</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_28\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党积极分子备案报告\\\" id=\\\"DATA_28\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_29\\\" title=\\\"入党积极分子备案报告日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_29\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党积极分子</span></p><p style=\\\"line-height: 27px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; background-color: transparent;\\\">备案表</span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_30\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党积极分子备案表\\\" id=\\\"DATA_30\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_31\\\" title=\\\"入党积极分子备案表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_31\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">培养联系人登记表</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><img name=\\\"DATA_33\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"培养联系人登记表文件\\\" id=\\\"DATA_33\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_32\\\" title=\\\"培养联系人登记表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_32\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width: 200px; height: 30px; font-size: 16px;\\\"/></p><p><span style=\\\"font-size:16px;font-family:等线\\\">培养联系人姓名：<textarea name=\\\"DATA_45\\\" id=\\\"DATA_45\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"培养联系人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></span></p></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 等线; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">&nbsp;</span><span style=\\\"text-align: -webkit-center; white-space: normal; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支部书记签字</span></td><td valign=\\\"top\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_39\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_39\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr></tbody></table><p><br/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"text-align: center; line-height: 4em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 36px;\\\">确定入党积极分子</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 951px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党申请人</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_2\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"入党申请人\\\" id=\\\"DATA_2\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党申请时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_4\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"入党申请时间\\\" id=\\\"DATA_4\\\" datafld=\\\"SYS_DATETIME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_6\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"单位（部门）\\\" id=\\\"DATA_6\\\" datafld=\\\"SYS_DEPTNAME_SHORT\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">党员推荐票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_9\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"党员推荐票文件\\\" id=\\\"DATA_9\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_10\\\" title=\\\"党员推荐票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_10\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">党员推荐汇总票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_11\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"党员推荐汇总票文件\\\" id=\\\"DATA_11\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_13\\\" title=\\\"党员推荐汇总票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_13\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">群团（工会/团支部）</span></p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">推优表</span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_15\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"群团（工会/团支部）推优表文件\\\" id=\\\"DATA_15\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"群团（工会/团支部）推优表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支委会会议记录</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><img name=\\\"DATA_18\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议记录文件\\\" id=\\\"DATA_18\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp;</p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">确认积极分子时间</span><input name=\\\"DATA_42\\\" title=\\\"确认积极分子时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_42\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支委会会议决议</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_26\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议决议文件\\\" id=\\\"DATA_26\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" title=\\\"支委会会议决议日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党积极分子</span></p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">备案报告</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_28\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党积极分子备案报告\\\" id=\\\"DATA_28\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_29\\\" title=\\\"入党积极分子备案报告日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_29\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">入党积极分子</span></p><p style=\\\"line-height: 27px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; background-color: transparent;\\\">备案表</span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_30\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党积极分子备案表\\\" id=\\\"DATA_30\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_31\\\" title=\\\"入党积极分子备案表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_31\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">培养联系人登记表</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><img name=\\\"DATA_33\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"培养联系人登记表文件\\\" id=\\\"DATA_33\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_32\\\" title=\\\"培养联系人登记表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_32\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width: 200px; height: 30px; font-size: 16px;\\\"/></p><p><span style=\\\"font-size:16px;font-family:等线\\\">培养联系人姓名：<textarea name=\\\"DATA_45\\\" id=\\\"DATA_45\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"培养联系人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></span></p></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(221, 221, 221);\\\" align=\\\"center\\\"><span style=\\\"font-family: 等线; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">&nbsp;</span><span style=\\\"text-align: -webkit-center; white-space: normal; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支部书记签字</span></td><td valign=\\\"top\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(221, 221, 221);\\\"><input name=\\\"DATA_39\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_39\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr></tbody></table><p><br/></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 45, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '" + formId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO  `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 108, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', ' ', ' ', '', '', '', 1, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', '1', NULL, '1', 0, '0', NULL, '0', '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE  `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = '" + flowSortId + "', `AUTO_NAME` = '', `AUTO_NUM` = 108, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = ' ', `ATTACHMENT_NAME` = ' ', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 1, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = '1', `TO_NOTIFY_YN` = NULL, `document_layout` = '1', `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = '0', `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = '" + flowId + "';";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 2, 0, '党群部', '', '', '', '', 'ALL_DEPT', '', '3,', 287, 122, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '1', '', 0, '', '', '', 0, 0, '0', '', '', '', '', '', 0, '', '', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', NULL, '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 3, 0, '支部书记', '', '', '', '', 'ALL_DEPT', '', '0,', 609, 151, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_9\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_11\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_15\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_18\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_26\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_28\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_30\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_33\\\":[\\\"1\\\"]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 1, 0, '支部书记', '', '[C@],[A@],党员推荐票文件,党员推荐票日期,党员推荐汇总票文件,党员推荐汇总票日期,群团（工会/团支部）推优表文件,群团（工会/团支部）推优表日期,支委会会议记录文件,确认积极分子时间,支委会会议决议文件,支委会会议决议日期,入党积极分子备案报告,入党积极分子备案报告日期,入党积极分子备案表,入党积极分子备案表日期,培养联系人登记表文件,培养联系人登记表日期,培养联系人姓名,支部书记签字,[B@]', '', '党员推荐票文件,党员推荐汇总票文件,群团（工会/团支部）推优表文件,支委会会议记录文件,支委会会议决议文件,入党积极分子备案报告,入党积极分子备案表,培养联系人登记表文件,培养联系人姓名,', 'ALL_DEPT', '', '2,', 159, 83, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 1, '[{\\\"FILE_PRIV_DATA_9\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_11\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_15\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_18\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_26\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_28\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_30\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_33\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, '0', 0, '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = '" + flowId + "';";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO  `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '" + flowId + "', '积极分子', '积极分子', 'party_member', '', 0, '支委会会议记录文件=>ATT_URL4,群团（工会/团支部）推优表文件=>ATT_URL3,入党积极分子备案表=>ATT_URL7,党员推荐汇总票文件=>ATT_URL2,支委会会议决议文件=>ATT_URL5,党员推荐票文件=>ATT_URL1,入党积极分子备案报告=>ATT_URL6,培养联系人登记表文件=>ATT_URL8,确认积极分子时间=>ACTIVISTS_TIME,培养联系人姓名=>DEVELOP_CONTACTS', '', '', '1', 120, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = '" + flowId + "';";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO  `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '确认积极分子', '" + flowId + "', 3, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("ACTIVIST", flowId);
                /*
                 * 需要更新的工作流
                 */
                formName = "确定发展对象";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO  `flow_form_type`( `FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '" + formName + "', '<p style=\\\"text-align: center; line-height: 2em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">确定发展对象</span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(0, 0, 0);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">入党积极分子姓名</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_57\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_57\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">确定入党积极分子时间</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_3\\\" title=\\\"确定入党积极分子时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_24\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_24\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">征求党内外<br/><span style=\\\"font-size: 16px; font-family: 等线;\\\">群众意见会议记录</span></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_7\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"征求党内外群众意见会议记录附件\\\" id=\\\"DATA_7\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp;<input name=\\\"DATA_9\\\" title=\\\"征求党内外群众意见会议记录附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_9\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定发展对象人选支委会会议记录</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_41\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议记录附件\\\" id=\\\"DATA_41\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_11\\\" title=\\\"支委会会议记录附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_11\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定发展对象人选支委会会议决议</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_42\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议会议附件\\\" id=\\\"DATA_42\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"支委会会议决议附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\";font-family:等线;font-size:19px\\\"><span style=\\\"font-family:等线\\\">入党介绍人登记表</span></span></p></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><img name=\\\"DATA_50\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党介绍人登记表\\\" id=\\\"DATA_50\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_51\\\" title=\\\"入党介绍人登记表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_51\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></p><p><textarea name=\\\"DATA_60\\\" id=\\\"DATA_60\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"入党介绍人\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></p><p></p><p></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">发展对象人选<br/><span style=\\\"font-size: 16px; font-family: 等线;\\\">备案报告</span></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_48\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"发展对象人选备案报告附件\\\" id=\\\"DATA_48\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_18\\\" title=\\\"展对象人选 备案报告附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_18\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">支部书记签字</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_62\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_62\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">提交时间</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_63\\\" title=\\\"提交时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_63\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" align=\\\"center\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">上级党委</span></p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">备案批复意见</span></p></td><td valign=\\\"middle\\\" align=\\\"left\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p></p><img name=\\\"DATA_32\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委备案批复意见\\\" id=\\\"DATA_32\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_33\\\" title=\\\"上级党委备案批复意见日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_33\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_66\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"签字\\\" id=\\\"DATA_66\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p>', '<p style=\\\"text-align: center; line-height: 2em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">确定发展对象</span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(0, 0, 0);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">入党积极分子姓名</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_57\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_57\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">确定入党积极分子时间</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_3\\\" title=\\\"确定入党积极分子时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_24\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_24\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">征求党内外<br/><span style=\\\"font-size: 16px; font-family: 等线;\\\">群众意见会议记录</span></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_7\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"征求党内外群众意见会议记录附件\\\" id=\\\"DATA_7\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp;<input name=\\\"DATA_9\\\" title=\\\"征求党内外群众意见会议记录附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_9\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定发展对象人选支委会会议记录</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_41\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议记录附件\\\" id=\\\"DATA_41\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_11\\\" title=\\\"支委会会议记录附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_11\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定发展对象人选支委会会议决议</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_42\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议会议附件\\\" id=\\\"DATA_42\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"支委会会议决议附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\";font-family:等线;font-size:19px\\\"><span style=\\\"font-family:等线\\\">入党介绍人登记表</span></span></p></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><img name=\\\"DATA_50\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党介绍人登记表\\\" id=\\\"DATA_50\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_51\\\" title=\\\"入党介绍人登记表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_51\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></p><p><textarea name=\\\"DATA_60\\\" id=\\\"DATA_60\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"入党介绍人\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></p><p></p><p></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">发展对象人选<br/><span style=\\\"font-size: 16px; font-family: 等线;\\\">备案报告</span></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_48\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"发展对象人选备案报告附件\\\" id=\\\"DATA_48\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_18\\\" title=\\\"展对象人选 备案报告附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_18\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">支部书记签字</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_62\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_62\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">提交时间</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_63\\\" title=\\\"提交时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_63\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" align=\\\"center\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">上级党委</span></p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">备案批复意见</span></p></td><td valign=\\\"middle\\\" align=\\\"left\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p></p><img name=\\\"DATA_32\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委备案批复意见\\\" id=\\\"DATA_32\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_33\\\" title=\\\"上级党委备案批复意见日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_33\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_66\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"签字\\\" id=\\\"DATA_66\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p>', 0, '', '', 66, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE  `flow_form_type` SET `FORM_NAME` = '" + formName + "', `PRINT_MODEL` = '<p style=\\\"text-align: center; line-height: 2em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">确定发展对象</span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(0, 0, 0);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">入党积极分子姓名</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_57\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_57\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">确定入党积极分子时间</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_3\\\" title=\\\"确定入党积极分子时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_24\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_24\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">征求党内外<br/><span style=\\\"font-size: 16px; font-family: 等线;\\\">群众意见会议记录</span></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_7\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"征求党内外群众意见会议记录附件\\\" id=\\\"DATA_7\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp;<input name=\\\"DATA_9\\\" title=\\\"征求党内外群众意见会议记录附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_9\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定发展对象人选支委会会议记录</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_41\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议记录附件\\\" id=\\\"DATA_41\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_11\\\" title=\\\"支委会会议记录附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_11\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定发展对象人选支委会会议决议</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_42\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议会议附件\\\" id=\\\"DATA_42\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"支委会会议决议附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\";font-family:等线;font-size:19px\\\"><span style=\\\"font-family:等线\\\">入党介绍人登记表</span></span></p></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><img name=\\\"DATA_50\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党介绍人登记表\\\" id=\\\"DATA_50\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_51\\\" title=\\\"入党介绍人登记表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_51\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></p><p><textarea name=\\\"DATA_60\\\" id=\\\"DATA_60\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"入党介绍人\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></p><p></p><p></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">发展对象人选<br/><span style=\\\"font-size: 16px; font-family: 等线;\\\">备案报告</span></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_48\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"发展对象人选备案报告附件\\\" id=\\\"DATA_48\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_18\\\" title=\\\"展对象人选 备案报告附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_18\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">支部书记签字</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_62\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_62\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">提交时间</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_63\\\" title=\\\"提交时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_63\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" align=\\\"center\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">上级党委</span></p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">备案批复意见</span></p></td><td valign=\\\"middle\\\" align=\\\"left\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p></p><img name=\\\"DATA_32\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委备案批复意见\\\" id=\\\"DATA_32\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_33\\\" title=\\\"上级党委备案批复意见日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_33\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_66\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"签字\\\" id=\\\"DATA_66\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"text-align: center; line-height: 2em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">确定发展对象</span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(0, 0, 0);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">入党积极分子姓名</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_57\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_57\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">确定入党积极分子时间</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_3\\\" title=\\\"确定入党积极分子时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_24\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_24\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">征求党内外<br/><span style=\\\"font-size: 16px; font-family: 等线;\\\">群众意见会议记录</span></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_7\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"征求党内外群众意见会议记录附件\\\" id=\\\"DATA_7\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp;<input name=\\\"DATA_9\\\" title=\\\"征求党内外群众意见会议记录附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_9\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定发展对象人选支委会会议记录</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_41\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议记录附件\\\" id=\\\"DATA_41\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_11\\\" title=\\\"支委会会议记录附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_11\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定发展对象人选支委会会议决议</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_42\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"支委会会议会议附件\\\" id=\\\"DATA_42\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"支委会会议决议附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\";font-family:等线;font-size:19px\\\"><span style=\\\"font-family:等线\\\">入党介绍人登记表</span></span></p></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><img name=\\\"DATA_50\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党介绍人登记表\\\" id=\\\"DATA_50\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_51\\\" title=\\\"入党介绍人登记表日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_51\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></p><p><textarea name=\\\"DATA_60\\\" id=\\\"DATA_60\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"入党介绍人\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></p><p></p><p></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">发展对象人选<br/><span style=\\\"font-size: 16px; font-family: 等线;\\\">备案报告</span></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_48\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"发展对象人选备案报告附件\\\" id=\\\"DATA_48\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_18\\\" title=\\\"展对象人选 备案报告附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_18\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">支部书记签字</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_62\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_62\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">提交时间</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_63\\\" title=\\\"提交时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_63\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" align=\\\"center\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">上级党委</span></p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">备案批复意见</span></p></td><td valign=\\\"middle\\\" align=\\\"left\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p></p><img name=\\\"DATA_32\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委备案批复意见\\\" id=\\\"DATA_32\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_33\\\" title=\\\"上级党委备案批复意见日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_33\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_66\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"签字\\\" id=\\\"DATA_66\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 66, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '" + formId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO  `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 54, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', '', '', '', '', '', 1, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', '1', NULL, '1', 0, '0', NULL, '0', '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE  `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = '" + flowSortId + "', `AUTO_NAME` = '', `AUTO_NUM` = 54, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = '', `ATTACHMENT_NAME` = '', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 1, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = '1', `TO_NOTIFY_YN` = NULL, `document_layout` = '1', `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = '0', `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = '" + flowId + "';";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 3, 0, '支部书记', '', '', '', '', 'ALL_DEPT', '', '0,', 695, 210, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_7\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_41\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_42\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_50\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_48\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_32\\\":[\\\"1\\\"]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 1, 0, '支部书记', '', '[C@],[A@],征求党内外群众意见会议记录附件,征求党内外群众意见会议记录附件上传时间,支委会会议记录附件,支委会会议记录附件上传时间,支委会会议会议附件,支委会会议决议附件上传时间,入党介绍人登记表,入党介绍人登记表日期,入党介绍人,发展对象人选备案报告附件,展对象人选 备案报告附件上传时间,支部书记签字,提交时间,[B@]', '', '征求党内外群众意见会议记录附件,征求党内外群众意见会议记录附件上传时间,支委会会议记录附件,支委会会议记录附件上传时间,支委会会议会议附件,支委会会议决议附件上传时间,入党介绍人登记表,入党介绍人登记表日期,入党介绍人,发展对象人选备案报告附件,展对象人选 备案报告附件上传时间,支部书记签字,提交时间,', 'ALL_DEPT', '', '2,', 199, 162, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_7\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_41\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_42\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_50\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_48\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_32\\\":[]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 2, 0, '党群部', '', '上级党委备案批复意见,上级党委备案批复意见日期,签字', '', '上级党委备案批复意见,上级党委备案批复意见日期,审批意见,', 'ALL_DEPT', '', '3,', 346, 181, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '1', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 1, '[{\\\"FILE_PRIV_DATA_7\\\":[\\\"4\\\",\\\"1\\\"]},{\\\"FILE_PRIV_DATA_41\\\":[\\\"4\\\",\\\"1\\\"]},{\\\"FILE_PRIV_DATA_42\\\":[\\\"4\\\",\\\"1\\\"]},{\\\"FILE_PRIV_DATA_50\\\":[\\\"4\\\",\\\"1\\\"]},{\\\"FILE_PRIV_DATA_48\\\":[\\\"4\\\",\\\"1\\\"]},{\\\"FILE_PRIV_DATA_32\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, '0', 0, '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = '" + flowId + "';";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO  `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '" + flowId + "', '发展对象和报上级党委备案', '发展对象和报上级党委备案', 'party_member', '', 0, '征求党内外群众意见会议记录附件=>ATT_URL1,支委会会议记录附件=>ATT_URL2,支委会会议会议附件=>ATT_URL3,入党介绍人登记表=>ATT_URL4,发展对象人选备案报告附件=>ATT_URL5,上级党委备案批复意见=>ATT_URL,入党介绍人=>RECOMMEND_PERSON,审批意见=>APPROVAL,上级党委备案批复意见日期=>DEVELOP_TIME', '', '', '1', 130, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = '" + flowId + "';";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO  `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '确认发展对象', '" + flowId + "', 3, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("DEVELOP_OBJ", flowId);

                /*
                 * 需要更新的工作流
                 */
                formName = "政治审查开展集中培训";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO  `flow_form_type`(`FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '" + formName + "', '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">政治审查、开展集中培训</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展对象姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_39\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"发展对象姓名\\\" value=\\\"\\\" id=\\\"DATA_39\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展阶段</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><select name=\\\"DATA_3\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_3\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"0\\\">入党申请</option><option value=\\\"2\\\">积极分子</option><option value=\\\"3\\\">发展对象</option><option value=\\\"4\\\">预备党员</option><option value=\\\"6\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">政治审查时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><input name=\\\"DATA_4\\\" title=\\\"政治审查开始时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_4\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:170px;height:30px;font-size:16px;\\\"/></p><p><input name=\\\"DATA_5\\\" title=\\\"政治审查结束时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_5\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:170px;height:30px;font-size:16px;\\\"/></p></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">集中培训时间</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><p><input name=\\\"DATA_8\\\" title=\\\"集中培训开始时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width: 170px; height: 30px; font-size: 16px;\\\"/></p><p><span style=\\\"background-color: transparent;\\\"><input name=\\\"DATA_9\\\" title=\\\"集中培训结束时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_9\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:170px;height:30px;font-size:16px;\\\"/></span><br/></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">政治审查函调材料</span></p><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"><br/></span></p></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_10\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"政治审查函调材料附件\\\" id=\\\"DATA_10\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_12\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"政治审查函调材料签字\\\" id=\\\"DATA_12\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\";font-family:等线;font-size:19px\\\"><span style=\\\"font-family:等线\\\">确定发展对象公示</span></span></p></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_21\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"确定发展对象公示\\\" id=\\\"DATA_21\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"确定发展对象公示签字\\\" id=\\\"DATA_27\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgsignimg=\\\"0\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\";font-family:等线;font-size:19px\\\"><span style=\\\"font-family:等线\\\">发展对象公示结论</span></span></p></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_22\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"发展对象公示结论\\\" id=\\\"DATA_22\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_28\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"发展对象公示结论签字\\\" id=\\\"DATA_28\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\" orgsignimg=\\\"0\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">政治审查综合报告</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_13\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"政治审查综合报告附件\\\" id=\\\"DATA_13\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_14\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"政治审查综合报告签字\\\" id=\\\"DATA_14\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">短期集中<span style=\\\"font-size: 16px; font-family: 等线;\\\">培训材料</span></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_15\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"短期集中培训材料附件\\\" id=\\\"DATA_15\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"短期集中培训材料签字\\\" id=\\\"DATA_16\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr></tbody></table><p><br/></p>', '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">政治审查、开展集中培训</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展对象姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_39\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"发展对象姓名\\\" value=\\\"\\\" id=\\\"DATA_39\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展阶段</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><select name=\\\"DATA_3\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_3\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"0\\\">入党申请</option><option value=\\\"2\\\">积极分子</option><option value=\\\"3\\\">发展对象</option><option value=\\\"4\\\">预备党员</option><option value=\\\"6\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">政治审查时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><input name=\\\"DATA_4\\\" title=\\\"政治审查开始时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_4\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:170px;height:30px;font-size:16px;\\\"/></p><p><input name=\\\"DATA_5\\\" title=\\\"政治审查结束时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_5\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:170px;height:30px;font-size:16px;\\\"/></p></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">集中培训时间</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><p><input name=\\\"DATA_8\\\" title=\\\"集中培训开始时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width: 170px; height: 30px; font-size: 16px;\\\"/></p><p><span style=\\\"background-color: transparent;\\\"><input name=\\\"DATA_9\\\" title=\\\"集中培训结束时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_9\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:170px;height:30px;font-size:16px;\\\"/></span><br/></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">政治审查函调材料</span></p><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"><br/></span></p></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_10\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"政治审查函调材料附件\\\" id=\\\"DATA_10\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_12\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"政治审查函调材料签字\\\" id=\\\"DATA_12\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\";font-family:等线;font-size:19px\\\"><span style=\\\"font-family:等线\\\">确定发展对象公示</span></span></p></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_21\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"确定发展对象公示\\\" id=\\\"DATA_21\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"确定发展对象公示签字\\\" id=\\\"DATA_27\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgsignimg=\\\"0\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\";font-family:等线;font-size:19px\\\"><span style=\\\"font-family:等线\\\">发展对象公示结论</span></span></p></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_22\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"发展对象公示结论\\\" id=\\\"DATA_22\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_28\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"发展对象公示结论签字\\\" id=\\\"DATA_28\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\" orgsignimg=\\\"0\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">政治审查综合报告</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_13\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"政治审查综合报告附件\\\" id=\\\"DATA_13\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_14\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"政治审查综合报告签字\\\" id=\\\"DATA_14\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">短期集中<span style=\\\"font-size: 16px; font-family: 等线;\\\">培训材料</span></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_15\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"短期集中培训材料附件\\\" id=\\\"DATA_15\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"短期集中培训材料签字\\\" id=\\\"DATA_16\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr></tbody></table><p><br/></p>', 0, '', '', 39, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE  `flow_form_type` SET `FORM_NAME` = '" + formName + "', `PRINT_MODEL` = '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">政治审查、开展集中培训</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展对象姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_39\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"发展对象姓名\\\" value=\\\"\\\" id=\\\"DATA_39\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展阶段</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><select name=\\\"DATA_3\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_3\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"0\\\">入党申请</option><option value=\\\"2\\\">积极分子</option><option value=\\\"3\\\">发展对象</option><option value=\\\"4\\\">预备党员</option><option value=\\\"6\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">政治审查时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><input name=\\\"DATA_4\\\" title=\\\"政治审查开始时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_4\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:170px;height:30px;font-size:16px;\\\"/></p><p><input name=\\\"DATA_5\\\" title=\\\"政治审查结束时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_5\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:170px;height:30px;font-size:16px;\\\"/></p></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">集中培训时间</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><p><input name=\\\"DATA_8\\\" title=\\\"集中培训开始时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width: 170px; height: 30px; font-size: 16px;\\\"/></p><p><span style=\\\"background-color: transparent;\\\"><input name=\\\"DATA_9\\\" title=\\\"集中培训结束时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_9\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:170px;height:30px;font-size:16px;\\\"/></span><br/></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">政治审查函调材料</span></p><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"><br/></span></p></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_10\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"政治审查函调材料附件\\\" id=\\\"DATA_10\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_12\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"政治审查函调材料签字\\\" id=\\\"DATA_12\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\";font-family:等线;font-size:19px\\\"><span style=\\\"font-family:等线\\\">确定发展对象公示</span></span></p></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_21\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"确定发展对象公示\\\" id=\\\"DATA_21\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"确定发展对象公示签字\\\" id=\\\"DATA_27\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgsignimg=\\\"0\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\";font-family:等线;font-size:19px\\\"><span style=\\\"font-family:等线\\\">发展对象公示结论</span></span></p></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_22\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"发展对象公示结论\\\" id=\\\"DATA_22\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_28\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"发展对象公示结论签字\\\" id=\\\"DATA_28\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\" orgsignimg=\\\"0\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">政治审查综合报告</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_13\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"政治审查综合报告附件\\\" id=\\\"DATA_13\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_14\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"政治审查综合报告签字\\\" id=\\\"DATA_14\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">短期集中<span style=\\\"font-size: 16px; font-family: 等线;\\\">培训材料</span></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_15\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"短期集中培训材料附件\\\" id=\\\"DATA_15\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"短期集中培训材料签字\\\" id=\\\"DATA_16\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr></tbody></table><p><br/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">政治审查、开展集中培训</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展对象姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_39\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"发展对象姓名\\\" value=\\\"\\\" id=\\\"DATA_39\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展阶段</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><select name=\\\"DATA_3\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_3\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"0\\\">入党申请</option><option value=\\\"2\\\">积极分子</option><option value=\\\"3\\\">发展对象</option><option value=\\\"4\\\">预备党员</option><option value=\\\"6\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">政治审查时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><input name=\\\"DATA_4\\\" title=\\\"政治审查开始时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_4\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:170px;height:30px;font-size:16px;\\\"/></p><p><input name=\\\"DATA_5\\\" title=\\\"政治审查结束时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_5\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:170px;height:30px;font-size:16px;\\\"/></p></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">集中培训时间</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><p><input name=\\\"DATA_8\\\" title=\\\"集中培训开始时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width: 170px; height: 30px; font-size: 16px;\\\"/></p><p><span style=\\\"background-color: transparent;\\\"><input name=\\\"DATA_9\\\" title=\\\"集中培训结束时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_9\\\" value=\\\"YYYY-MM-DD hh:mm:ss\\\" date_format=\\\"YYYY-MM-DD hh:mm:ss\\\" gwidth=\\\"170\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:170px;height:30px;font-size:16px;\\\"/></span><br/></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">政治审查函调材料</span></p><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"><br/></span></p></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_10\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"政治审查函调材料附件\\\" id=\\\"DATA_10\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_12\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"政治审查函调材料签字\\\" id=\\\"DATA_12\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\";font-family:等线;font-size:19px\\\"><span style=\\\"font-family:等线\\\">确定发展对象公示</span></span></p></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_21\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"确定发展对象公示\\\" id=\\\"DATA_21\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"确定发展对象公示签字\\\" id=\\\"DATA_27\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgsignimg=\\\"0\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><p><span style=\\\";font-family:等线;font-size:19px\\\"><span style=\\\"font-family:等线\\\">发展对象公示结论</span></span></p></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_22\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"发展对象公示结论\\\" id=\\\"DATA_22\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_28\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"发展对象公示结论签字\\\" id=\\\"DATA_28\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\" orgsignimg=\\\"0\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">政治审查综合报告</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_13\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"政治审查综合报告附件\\\" id=\\\"DATA_13\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_14\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"政治审查综合报告签字\\\" id=\\\"DATA_14\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">短期集中<span style=\\\"font-size: 16px; font-family: 等线;\\\">培训材料</span></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\"><img name=\\\"DATA_15\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"短期集中培训材料附件\\\" id=\\\"DATA_15\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"短期集中培训材料签字\\\" id=\\\"DATA_16\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr></tbody></table><p><br/></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 39, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '" + formId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO  `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 20, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', '', '', '', '', '', 1, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', '1', NULL, '1', 0, '0', NULL, '0', '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE  `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = '" + flowSortId + "', `AUTO_NAME` = '', `AUTO_NUM` = 20, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = '', `ATTACHMENT_NAME` = '', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 1, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = '1', `TO_NOTIFY_YN` = NULL, `document_layout` = '1', `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = '0', `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = '" + flowId + "';";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 1, 0, '支部书记', '', '政治审查开始时间,政治审查结束时间,集中培训开始时间,集中培训结束时间,政治审查函调材料附件,政治审查函调材料签字,确定发展对象公示,确定发展对象公示签字,发展对象公示结论,发展对象公示结论签字,政治审查综合报告附件,政治审查综合报告签字,短期集中培训材料附件,短期集中培训材料签字', '', '政治审查开始时间,政治审查结束时间,集中培训开始时间,集中培训结束时间,政治审查函调材料附件,政治审查函调材料签字,确定发展对象公示,确定发展对象公示签字,发展对象公示结论,发展对象公示结论签字,政治审查综合报告附件,政治审查综合报告签字,短期集中培训材料附件,短期集中培训材料签字,', 'ALL_DEPT', '', '0,', 89, 131, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 1, '[{\\\"FILE_PRIV_DATA_10\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_21\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_22\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_13\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_15\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, '0', 0, '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = '" + flowId + "';";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO  `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '" + flowId + "', '" + formName + "', '" + formName + "', 'party_member', '', 0, '政治审查函调材料附件=>ATT_URL1,确定发展对象公示=>ATT_URL2,发展对象公示结论=>ATT_URL3,政治审查综合报告附件=>ATT_URL4,短期集中培训材料附件=>ATT_URL5', '', '', '1', 170, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = '" + flowId + "';";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO  `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '" + formName + "', '" + flowId + "', 1, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("REVIEW", flowId);

                /*
                 * 需要更新的工作流
                 */
                formName = "支委会审查";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO `flow_form_type`( `FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '" + formName + "', '<p style=\\\"text-align: center; line-height: 2em;\\\"></p><p style=\\\"text-align:center;text-indent:28px\\\"><span style=\\\"font-size: 24px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">支委会审查</span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展对象姓名</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_23\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"发展对象姓名\\\" value=\\\"\\\" id=\\\"DATA_23\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定发展对象时间</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_3\\\" title=\\\"确定发展对象时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_24\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_24\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">自传</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_25\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"自传\\\" id=\\\"DATA_25\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_26\\\" title=\\\"自传日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_26\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">确定发展对象期间思想汇报</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">&nbsp;<img name=\\\"DATA_48\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"确定发展对象期间思想汇报附件\\\" id=\\\"DATA_48\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_49\\\" title=\\\"确定发展对象期间思想汇报时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_49\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定预备党员候选人会议记录</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_28\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"确定预备党员候选人会议记录\\\" id=\\\"DATA_28\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_30\\\" title=\\\"确定预备党员候选人会议记录日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_30\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:32px\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">拟接收预备党员</span></p><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">公示</span></p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_33\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟接收预备党员公示\\\" id=\\\"DATA_33\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_34\\\" title=\\\"拟接收预备党员公示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_34\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:32px\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">拟接收预备党员</span></p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"><span style=\\\"font-size: 16px; font-family: 等线;\\\">公示结论</span><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; background-color: transparent;\\\"></span></span></p></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_35\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟接收预备党员公示结论\\\" id=\\\"DATA_35\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_36\\\" title=\\\"拟接收预备党员公示结论日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_36\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">拟接收预备党员预审请示</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_38\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟接收预备党员预审请示附件\\\" id=\\\"DATA_38\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp;<input name=\\\"DATA_15\\\" title=\\\"拟接收预备党员预审请示附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_15\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" align=\\\"left\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">上级党委预审意见</span></td><td valign=\\\"middle\\\" align=\\\"left\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_45\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委预审意见\\\" id=\\\"DATA_45\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_46\\\" title=\\\"上级党委预审意见日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_46\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_51\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"签名\\\" id=\\\"DATA_51\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p>', '<p style=\\\"text-align: center; line-height: 2em;\\\"></p><p style=\\\"text-align:center;text-indent:28px\\\"><span style=\\\"font-size: 24px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">支委会审查</span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展对象姓名</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_23\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"发展对象姓名\\\" value=\\\"\\\" id=\\\"DATA_23\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定发展对象时间</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_3\\\" title=\\\"确定发展对象时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_24\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_24\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">自传</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_25\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"自传\\\" id=\\\"DATA_25\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_26\\\" title=\\\"自传日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_26\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">确定发展对象期间思想汇报</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">&nbsp;<img name=\\\"DATA_48\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"确定发展对象期间思想汇报附件\\\" id=\\\"DATA_48\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_49\\\" title=\\\"确定发展对象期间思想汇报时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_49\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定预备党员候选人会议记录</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_28\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"确定预备党员候选人会议记录\\\" id=\\\"DATA_28\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_30\\\" title=\\\"确定预备党员候选人会议记录日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_30\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:32px\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">拟接收预备党员</span></p><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">公示</span></p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_33\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟接收预备党员公示\\\" id=\\\"DATA_33\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_34\\\" title=\\\"拟接收预备党员公示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_34\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:32px\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">拟接收预备党员</span></p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"><span style=\\\"font-size: 16px; font-family: 等线;\\\">公示结论</span><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; background-color: transparent;\\\"></span></span></p></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_35\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟接收预备党员公示结论\\\" id=\\\"DATA_35\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_36\\\" title=\\\"拟接收预备党员公示结论日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_36\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">拟接收预备党员预审请示</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_38\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟接收预备党员预审请示附件\\\" id=\\\"DATA_38\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp;<input name=\\\"DATA_15\\\" title=\\\"拟接收预备党员预审请示附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_15\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" align=\\\"left\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">上级党委预审意见</span></td><td valign=\\\"middle\\\" align=\\\"left\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_45\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委预审意见\\\" id=\\\"DATA_45\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_46\\\" title=\\\"上级党委预审意见日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_46\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_51\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"签名\\\" id=\\\"DATA_51\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p>', 0, '', '', 51, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE `flow_form_type` SET `FORM_NAME` = '"+formName+"', `PRINT_MODEL` = '<p style=\\\"text-align: center; line-height: 2em;\\\"></p><p style=\\\"text-align:center;text-indent:28px\\\"><span style=\\\"font-size: 24px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">支委会审查</span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展对象姓名</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_23\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"发展对象姓名\\\" value=\\\"\\\" id=\\\"DATA_23\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定发展对象时间</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_3\\\" title=\\\"确定发展对象时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_24\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_24\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">自传</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_25\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"自传\\\" id=\\\"DATA_25\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_26\\\" title=\\\"自传日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_26\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">确定发展对象期间思想汇报</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">&nbsp;<img name=\\\"DATA_48\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"确定发展对象期间思想汇报附件\\\" id=\\\"DATA_48\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_49\\\" title=\\\"确定发展对象期间思想汇报时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_49\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定预备党员候选人会议记录</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_28\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"确定预备党员候选人会议记录\\\" id=\\\"DATA_28\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_30\\\" title=\\\"确定预备党员候选人会议记录日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_30\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:32px\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">拟接收预备党员</span></p><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">公示</span></p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_33\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟接收预备党员公示\\\" id=\\\"DATA_33\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_34\\\" title=\\\"拟接收预备党员公示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_34\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:32px\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">拟接收预备党员</span></p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"><span style=\\\"font-size: 16px; font-family: 等线;\\\">公示结论</span><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; background-color: transparent;\\\"></span></span></p></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_35\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟接收预备党员公示结论\\\" id=\\\"DATA_35\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_36\\\" title=\\\"拟接收预备党员公示结论日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_36\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">拟接收预备党员预审请示</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_38\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟接收预备党员预审请示附件\\\" id=\\\"DATA_38\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp;<input name=\\\"DATA_15\\\" title=\\\"拟接收预备党员预审请示附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_15\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" align=\\\"left\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">上级党委预审意见</span></td><td valign=\\\"middle\\\" align=\\\"left\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_45\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委预审意见\\\" id=\\\"DATA_45\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_46\\\" title=\\\"上级党委预审意见日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_46\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_51\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"签名\\\" id=\\\"DATA_51\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"text-align: center; line-height: 2em;\\\"></p><p style=\\\"text-align:center;text-indent:28px\\\"><span style=\\\"font-size: 24px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">支委会审查</span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展对象姓名</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_23\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"发展对象姓名\\\" value=\\\"\\\" id=\\\"DATA_23\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定发展对象时间</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_3\\\" title=\\\"确定发展对象时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_24\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_24\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">自传</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_25\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"自传\\\" id=\\\"DATA_25\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_26\\\" title=\\\"自传日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_26\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">确定发展对象期间思想汇报</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">&nbsp;<img name=\\\"DATA_48\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"确定发展对象期间思想汇报附件\\\" id=\\\"DATA_48\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_49\\\" title=\\\"确定发展对象期间思想汇报时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_49\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定预备党员候选人会议记录</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_28\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"确定预备党员候选人会议记录\\\" id=\\\"DATA_28\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_30\\\" title=\\\"确定预备党员候选人会议记录日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_30\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:32px\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">拟接收预备党员</span></p><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">公示</span></p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"></span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_33\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟接收预备党员公示\\\" id=\\\"DATA_33\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_34\\\" title=\\\"拟接收预备党员公示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_34\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:32px\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">拟接收预备党员</span></p><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"><span style=\\\"font-size: 16px; font-family: 等线;\\\">公示结论</span><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; background-color: transparent;\\\"></span></span></p></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\">&nbsp;<img name=\\\"DATA_35\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟接收预备党员公示结论\\\" id=\\\"DATA_35\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_36\\\" title=\\\"拟接收预备党员公示结论日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_36\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">拟接收预备党员预审请示</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_38\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟接收预备党员预审请示附件\\\" id=\\\"DATA_38\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp;<input name=\\\"DATA_15\\\" title=\\\"拟接收预备党员预审请示附件上传时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_15\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" align=\\\"left\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">上级党委预审意见</span></td><td valign=\\\"middle\\\" align=\\\"left\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_45\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委预审意见\\\" id=\\\"DATA_45\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_46\\\" title=\\\"上级党委预审意见日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_46\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_51\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"签名\\\" id=\\\"DATA_51\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 51, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '"+formId+"';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO  `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 40, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', '', '', '', '', '', 1, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', '1', '1', '1', 0, '0', NULL, '0', '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE  `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = '" + flowSortId + "', `AUTO_NAME` = '', `AUTO_NUM` = 40, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = '', `ATTACHMENT_NAME` = '', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 1, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = '1', `TO_NOTIFY_YN` = '1', `document_layout` = '1', `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = '0', `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 3, 0, '支部书记', '', '', '', '', 'ALL_DEPT', '', '0,', 570, 179, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_25\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_48\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_28\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_33\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_35\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_38\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_45\\\":[\\\"1\\\"]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 1, 0, '支部书记', '', '自传,自传日期,确定发展对象期间思想汇报附件,确定发展对象期间思想汇报时间,确定预备党员候选人会议记录,确定预备党员候选人会议记录日期,拟接收预备党员公示,拟接收预备党员公示日期,拟接收预备党员公示结论,拟接收预备党员公示结论日期,拟接收预备党员预审请示附件,拟接收预备党员预审请示附件上传时间', '', '自传,自传日期,确定发展对象期间思想汇报附件,确定发展对象期间思想汇报时间,确定预备党员候选人会议记录,确定预备党员候选人会议记录日期,拟接收预备党员公示,拟接收预备党员公示日期,拟接收预备党员公示结论,拟接收预备党员公示结论日期,拟接收预备党员预审请示附件,拟接收预备党员预审请示附件上传时间,', 'ALL_DEPT', '', '2,', 117, 135, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_25\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_48\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_28\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_33\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_35\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_38\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_45\\\":[]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 2, 0, '党群部', '', '上级党委预审意见,上级党委预审意见日期,签名', '', '上级党委预审意见,上级党委预审意见日期,', 'ALL_DEPT', '', '3,', 306, 150, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '1', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 1, '[{\\\"FILE_PRIV_DATA_25\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_48\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_28\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_33\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_35\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_38\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_45\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, '0', 0, '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO  `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '" + flowId + "', '支委会审查', '支委会审查', 'party_member', '', 0, '自传=>ATT_URL1,确定预备党员候选人会议记录=>ATT_URL3,拟接收预备党员公示=>ATT_URL4,拟接收预备党员公示结论=>ATT_URL5,拟接收预备党员预审请示附件=>ATT_URL6,上级党委预审意见=>ATT_URL7', '', '', '1', 180, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '支委会审查', '" + flowId + "', 3, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("EXAMINATION", flowId);

                /*
                 * 需要更新的工作流
                 */
                formName = "支部大会讨论";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO `flow_form_type`( `FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '" + formName + "', '<p style=\\\"text-align: center; line-height: 4em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 36px;\\\">支部大会讨论</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 950px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">发展对象姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_58\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"发展对象姓名\\\" value=\\\"\\\" id=\\\"DATA_58\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">列为发展对象时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_60\\\" title=\\\"列为发展对象时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_60\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_59\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_59\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">接收预备党员表决票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_61\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员表决票附件\\\" id=\\\"DATA_61\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_10\\\" title=\\\"接收预备党员表决票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_10\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">接收预备党员汇总票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_62\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员汇总票附件\\\" id=\\\"DATA_62\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_13\\\" title=\\\"接收预备党员汇总票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_13\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"></span><span style=\\\"font-size: 16px; font-family: 等线;\\\">接收预备党员支部大会会议记录</span></span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_63\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员支部大会会议记录附件\\\" id=\\\"DATA_63\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"接收预备党员时间\\\" class=\\\"form_item\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 等线; font-size: 16px;\\\">接收预备党员支部大会会议决议<br/></span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_64\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员支部大会会议决议附件\\\" id=\\\"DATA_64\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_19\\\" title=\\\"接收预备党员支部大会会议决议日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_19\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"><span style=\\\"font-size:16px;font-family:等线\\\">接收预备党员审批请示</span></span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_65\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员审批请示附件\\\" id=\\\"DATA_65\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" title=\\\"接收预备党员审批请示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 等线;\\\">支部书记签字</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_69\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_69\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">谈话人意见</td><td valign=\\\"middle\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_52\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"谈话人意见附件\\\" id=\\\"DATA_52\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_55\\\" title=\\\"谈话人意见时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_55\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">上级党委审批意见</td><td valign=\\\"middle\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_53\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委审批意见附件\\\" id=\\\"DATA_53\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_56\\\" title=\\\"上级党委审批意见时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_56\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_71\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"签名\\\" id=\\\"DATA_71\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p>', '<p style=\\\"text-align: center; line-height: 4em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 36px;\\\">支部大会讨论</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 950px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">发展对象姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_58\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"发展对象姓名\\\" value=\\\"\\\" id=\\\"DATA_58\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">列为发展对象时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_60\\\" title=\\\"列为发展对象时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_60\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_59\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_59\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">接收预备党员表决票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_61\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员表决票附件\\\" id=\\\"DATA_61\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_10\\\" title=\\\"接收预备党员表决票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_10\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">接收预备党员汇总票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_62\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员汇总票附件\\\" id=\\\"DATA_62\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_13\\\" title=\\\"接收预备党员汇总票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_13\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"></span><span style=\\\"font-size: 16px; font-family: 等线;\\\">接收预备党员支部大会会议记录</span></span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_63\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员支部大会会议记录附件\\\" id=\\\"DATA_63\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"接收预备党员时间\\\" class=\\\"form_item\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 等线; font-size: 16px;\\\">接收预备党员支部大会会议决议<br/></span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_64\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员支部大会会议决议附件\\\" id=\\\"DATA_64\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_19\\\" title=\\\"接收预备党员支部大会会议决议日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_19\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"><span style=\\\"font-size:16px;font-family:等线\\\">接收预备党员审批请示</span></span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_65\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员审批请示附件\\\" id=\\\"DATA_65\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" title=\\\"接收预备党员审批请示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 等线;\\\">支部书记签字</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_69\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_69\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">谈话人意见</td><td valign=\\\"middle\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_52\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"谈话人意见附件\\\" id=\\\"DATA_52\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_55\\\" title=\\\"谈话人意见时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_55\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">上级党委审批意见</td><td valign=\\\"middle\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_53\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委审批意见附件\\\" id=\\\"DATA_53\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_56\\\" title=\\\"上级党委审批意见时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_56\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_71\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"签名\\\" id=\\\"DATA_71\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p>', 0, '', '', 71, '" + sortId + "', 0, 'DATA_2|1,DATA_4|1,DATA_6|1,DATA_7|1,DATA_9|1,DATA_10|1,DATA_11|1,DATA_13|1,DATA_15|1,DATA_16|1,DATA_18|1,DATA_19|1,DATA_26|1,DATA_27|1,DATA_28|1,DATA_29|1,DATA_30|1,DATA_31|1,DATA_33|1,DATA_32|1,DATA_35|1,DATA_38|1,DATA_39|1');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE `flow_form_type` SET `FORM_NAME` = '" + formName + "', `PRINT_MODEL` = '<p style=\\\"text-align: center; line-height: 4em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 36px;\\\">支部大会讨论</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 950px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">发展对象姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_58\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"发展对象姓名\\\" value=\\\"\\\" id=\\\"DATA_58\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">列为发展对象时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_60\\\" title=\\\"列为发展对象时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_60\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_59\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_59\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">接收预备党员表决票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_61\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员表决票附件\\\" id=\\\"DATA_61\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_10\\\" title=\\\"接收预备党员表决票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_10\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">接收预备党员汇总票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_62\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员汇总票附件\\\" id=\\\"DATA_62\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_13\\\" title=\\\"接收预备党员汇总票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_13\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"></span><span style=\\\"font-size: 16px; font-family: 等线;\\\">接收预备党员支部大会会议记录</span></span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_63\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员支部大会会议记录附件\\\" id=\\\"DATA_63\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"接收预备党员时间\\\" class=\\\"form_item\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 等线; font-size: 16px;\\\">接收预备党员支部大会会议决议<br/></span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_64\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员支部大会会议决议附件\\\" id=\\\"DATA_64\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_19\\\" title=\\\"接收预备党员支部大会会议决议日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_19\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"><span style=\\\"font-size:16px;font-family:等线\\\">接收预备党员审批请示</span></span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_65\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员审批请示附件\\\" id=\\\"DATA_65\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" title=\\\"接收预备党员审批请示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 等线;\\\">支部书记签字</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_69\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_69\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">谈话人意见</td><td valign=\\\"middle\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_52\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"谈话人意见附件\\\" id=\\\"DATA_52\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_55\\\" title=\\\"谈话人意见时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_55\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">上级党委审批意见</td><td valign=\\\"middle\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_53\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委审批意见附件\\\" id=\\\"DATA_53\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_56\\\" title=\\\"上级党委审批意见时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_56\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_71\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"签名\\\" id=\\\"DATA_71\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"text-align: center; line-height: 4em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 36px;\\\">支部大会讨论</span><br/></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 950px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">发展对象姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_58\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"发展对象姓名\\\" value=\\\"\\\" id=\\\"DATA_58\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">列为发展对象时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_60\\\" title=\\\"列为发展对象时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_60\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_59\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_59\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"160\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 160px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">接收预备党员表决票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_61\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员表决票附件\\\" id=\\\"DATA_61\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_10\\\" title=\\\"接收预备党员表决票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_10\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">接收预备党员汇总票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_62\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员汇总票附件\\\" id=\\\"DATA_62\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_13\\\" title=\\\"接收预备党员汇总票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_13\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"></span><span style=\\\"font-size: 16px; font-family: 等线;\\\">接收预备党员支部大会会议记录</span></span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_63\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员支部大会会议记录附件\\\" id=\\\"DATA_63\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"接收预备党员时间\\\" class=\\\"form_item\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 等线; font-size: 16px;\\\">接收预备党员支部大会会议决议<br/></span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_64\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员支部大会会议决议附件\\\" id=\\\"DATA_64\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_19\\\" title=\\\"接收预备党员支部大会会议决议日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_19\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"><span style=\\\"font-size:16px;font-family:等线\\\">接收预备党员审批请示</span></span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_65\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"接收预备党员审批请示附件\\\" id=\\\"DATA_65\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" title=\\\"接收预备党员审批请示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 等线;\\\">支部书记签字</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_69\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_69\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">谈话人意见</td><td valign=\\\"middle\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_52\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"谈话人意见附件\\\" id=\\\"DATA_52\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_55\\\" title=\\\"谈话人意见时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_55\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">上级党委审批意见</td><td valign=\\\"middle\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_53\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委审批意见附件\\\" id=\\\"DATA_53\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_56\\\" title=\\\"上级党委审批意见时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_56\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_71\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"签名\\\" id=\\\"DATA_71\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 71, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = 'DATA_2|1,DATA_4|1,DATA_6|1,DATA_7|1,DATA_9|1,DATA_10|1,DATA_11|1,DATA_13|1,DATA_15|1,DATA_16|1,DATA_18|1,DATA_19|1,DATA_26|1,DATA_27|1,DATA_28|1,DATA_29|1,DATA_30|1,DATA_31|1,DATA_33|1,DATA_32|1,DATA_35|1,DATA_38|1,DATA_39|1' WHERE `FORM_ID` = '" + formId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 25, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', '', '', '', '', '', 1, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', '1', NULL, '1', 0, '0', NULL, '0', '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = '" + flowSortId + "', `AUTO_NAME` = '', `AUTO_NUM` = 25, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = '', `ATTACHMENT_NAME` = '', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 1, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = '1', `TO_NOTIFY_YN` = NULL, `document_layout` = '1', `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = '0', `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO `flow_process`(`FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ('" + flowId + "', 1, 0, '支部书记', '', '接收预备党员表决票附件,接收预备党员表决票日期,接收预备党员汇总票附件,接收预备党员汇总票日期,接收预备党员支部大会会议记录附件,接收预备党员时间,接收预备党员支部大会会议决议附件,接收预备党员支部大会会议决议日期,接收预备党员审批请示附件,接收预备党员审批请示日期,支部书记签字', '', '接收预备党员表决票附件,接收预备党员汇总票附件,接收预备党员汇总票日期,接收预备党员支部大会会议记录附件,接收预备党员支部大会会议记录日期,接收预备党员支部大会会议决议附件,接收预备党员支部大会会议决议日期,接收预备党员审批请示附件,接收预备党员审批请示日期,支部书记签字,', '', '', '2,', 58, 182, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_61\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_62\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_63\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_64\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_65\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_52\\\":[]},{\\\"FILE_PRIV_DATA_53\\\":[]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO `flow_process`(`FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 2, 0, '党群部', '', '谈话人意见附件,谈话人意见时间,上级党委审批意见附件,上级党委审批意见时间,签名', '', '谈话人意见附件,谈话人意见时间,上级党委审批意见附件,上级党委审批意见时间,', 'ALL_DEPT', '', '3,', 209, 190, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '1', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 1, '[{\\\"FILE_PRIV_DATA_61\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_62\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_63\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_64\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_65\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_52\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_53\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, '0', 0, '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 3, 0, '支部书记', '', '', '', '', 'ALL_DEPT', '', '0,', 618, 230, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_61\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_62\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_63\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_64\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_65\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_52\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_53\\\":[\\\"1\\\"]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO  `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '" + flowId + "', '支部大会讨论', '支部大会讨论', 'party_member', '', 0, '\\r\\n接收预备党员表决票附件=>ATT_URL1,接收预备党员汇总票附件=>ATT_URL2,接收预备党员支部大会会议记录附件=>ATT_URL3,接收预备党员支部大会会议决议附件=>ATT_URL4,接收预备党员审批请示附件=>ATT_URL5,谈话人意见附件=>ATT_URL6,上级党委审批意见附件=>ATT_URL7,接收预备党员时间=>RECEIVE_TIME,审批意见=>APPROVAL', '', '', '1', 230, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO  `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '支部大会讨论', '" + flowId + "', 3, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("DISCUSS", flowId);

                /*
                 * 需要更新的工作流
                 */
                formName = "入党宣誓";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO  `flow_form_type`( `FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '" + formName + "', '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">入党宣誓</span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">预备党员姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_13\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"预备党员姓名\\\" value=\\\"\\\" id=\\\"DATA_13\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">接收预备党员时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" title=\\\"接收预备党员时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_6\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展阶段</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><select name=\\\"DATA_9\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_9\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"入党申请人\\\">入党申请人</option><option value=\\\"积极分子\\\">积极分子</option><option value=\\\"发展对象\\\">发展对象</option><option value=\\\"预备党员\\\">预备党员</option><option value=\\\"正式党员\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">入党宣誓活动纪实</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_10\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党宣誓活动纪实附件\\\" id=\\\"DATA_10\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_11\\\" title=\\\"入党宣誓活动纪实时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_11\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr></tbody></table><p><br/></p>', '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">入党宣誓</span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">预备党员姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_13\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"预备党员姓名\\\" value=\\\"\\\" id=\\\"DATA_13\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">接收预备党员时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" title=\\\"接收预备党员时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_6\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展阶段</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><select name=\\\"DATA_9\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_9\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"入党申请人\\\">入党申请人</option><option value=\\\"积极分子\\\">积极分子</option><option value=\\\"发展对象\\\">发展对象</option><option value=\\\"预备党员\\\">预备党员</option><option value=\\\"正式党员\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">入党宣誓活动纪实</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_10\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党宣誓活动纪实附件\\\" id=\\\"DATA_10\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_11\\\" title=\\\"入党宣誓活动纪实时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_11\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr></tbody></table><p><br/></p>', 0, '', '', 13, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE  `flow_form_type` SET `FORM_NAME` = '" + formName + "', `PRINT_MODEL` = '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">入党宣誓</span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">预备党员姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_13\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"预备党员姓名\\\" value=\\\"\\\" id=\\\"DATA_13\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">接收预备党员时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" title=\\\"接收预备党员时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_6\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展阶段</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><select name=\\\"DATA_9\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_9\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"入党申请人\\\">入党申请人</option><option value=\\\"积极分子\\\">积极分子</option><option value=\\\"发展对象\\\">发展对象</option><option value=\\\"预备党员\\\">预备党员</option><option value=\\\"正式党员\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">入党宣誓活动纪实</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_10\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党宣誓活动纪实附件\\\" id=\\\"DATA_10\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_11\\\" title=\\\"入党宣誓活动纪实时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_11\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr></tbody></table><p><br/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">入党宣誓</span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">预备党员姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_13\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"预备党员姓名\\\" value=\\\"\\\" id=\\\"DATA_13\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">接收预备党员时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" title=\\\"接收预备党员时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_6\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">发展阶段</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><select name=\\\"DATA_9\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_9\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"入党申请人\\\">入党申请人</option><option value=\\\"积极分子\\\">积极分子</option><option value=\\\"发展对象\\\">发展对象</option><option value=\\\"预备党员\\\">预备党员</option><option value=\\\"正式党员\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">入党宣誓活动纪实</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_10\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"入党宣誓活动纪实附件\\\" id=\\\"DATA_10\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_11\\\" title=\\\"入党宣誓活动纪实时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_11\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr></tbody></table><p><br/></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 13, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '" + formId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO  `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 23, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', '', '', '', '', '', 1, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', '1', NULL, '1', 0, '0', NULL, '0', '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE  `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = '" + flowSortId + "', `AUTO_NAME` = '', `AUTO_NUM` = 23, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = '', `ATTACHMENT_NAME` = '', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 1, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = '1', `TO_NOTIFY_YN` = NULL, `document_layout` = '1', `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = '0', `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 1, 0, '支部书记', '', '入党宣誓活动纪实附件,入党宣誓活动纪实时间', '', '入党宣誓活动纪实附件,入党宣誓活动纪实时间,', 'ALL_DEPT', '', '0,', 163, 88, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_10\\\":[]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO  `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '" + flowId + "', '入党宣誓', '入党宣誓', 'party_member', '', 0, '入党宣誓活动纪实附件=>ATT_URL1', '', '', '1', 190, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO  `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '入党宣誓', '" + flowId + "', 1, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("OATH", flowId);

                /*
                 * 需要更新的工作流
                 */
                formName = "预备党员转正";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO  `flow_form_type`( `FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '" + formName + "', '<p style=\\\"text-align: center; line-height: 4em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 36px;\\\"></span></p><p style=\\\"text-align:center;line-height:32px\\\"><span style=\\\"font-size:24px\\\">预备党员转正</span></p><p></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 950px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">预备党员姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_62\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"预备党员姓名\\\" value=\\\"\\\" id=\\\"DATA_62\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">接收预备党员时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_4\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"接收预备党员时间\\\" id=\\\"DATA_4\\\" datafld=\\\"SYS_DATETIME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_64\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_64\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正申请书</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">&nbsp;<img name=\\\"DATA_66\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"转正申请书\\\" id=\\\"DATA_66\\\" width=\\\"50\\\" height=\\\"50\\\"/><span style=\\\"font-size: 16px; font-family: 等线;\\\">提交时间：</span></span><input name=\\\"DATA_10\\\" title=\\\"提交时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_10\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><br/></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">征求党内外群众意见会议记录</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_67\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"征求党内外群众意见会议记录\\\" id=\\\"DATA_67\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_13\\\" title=\\\"征求党内外群众意见会议记录日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_13\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"></span><span style=\\\"font-size: 16px; font-family: 等线;\\\">拟转正公示</span></span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_68\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟转正公示\\\" id=\\\"DATA_68\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"拟转正公示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 等线; font-size: 16px;\\\">拟转正公示结论<br/></span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_14\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"拟转正公示结论文件\\\" id=\\\"DATA_14\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_19\\\" title=\\\"拟转正公示结论日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_19\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正表决票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_17\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"转正表决票文件\\\" id=\\\"DATA_16\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" title=\\\"转正表决票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\"></span></p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正表决汇总票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_20\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"转正表决汇总票\\\" id=\\\"DATA_20\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_29\\\" title=\\\"转正表决汇总票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_29\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"></span><span style=\\\"font-size: 16px; font-family: 等线;\\\">支部大会会议记录</span><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; background-color: transparent;\\\"></span></span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_22\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"支部大会会议记录\\\" id=\\\"DATA_22\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_31\\\" title=\\\"支部大会会议记录日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_31\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">支部大会会议决议</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><img name=\\\"DATA_24\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"支部大会会议决议文件\\\" id=\\\"DATA_24\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_32\\\" title=\\\"支部大会会议决议日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_32\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></p></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正审批请示</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_40\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"转正审批请示\\\" id=\\\"DATA_40\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_41\\\" title=\\\"转正审批请示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_41\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">转正支部大会时间</span></td><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_74\\\" title=\\\"转正支部大会时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_74\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"\\\" orgfontsize=\\\"\\\" isnow=\\\"1\\\" style=\\\"width:150px;\\\"/></td><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">支部书记签字</span></td><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_73\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_73\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\">上级党委审批意见</td><td valign=\\\"middle\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><img name=\\\"DATA_75\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委审批意见\\\" id=\\\"DATA_75\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_76\\\" title=\\\"审批时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_76\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_78\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"签名\\\" id=\\\"DATA_78\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p><p></p><p><br/></p>', '<p style=\\\"text-align: center; line-height: 4em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 36px;\\\"></span></p><p style=\\\"text-align:center;line-height:32px\\\"><span style=\\\"font-size:24px\\\">预备党员转正</span></p><p></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 950px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">预备党员姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_62\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"预备党员姓名\\\" value=\\\"\\\" id=\\\"DATA_62\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">接收预备党员时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_4\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"接收预备党员时间\\\" id=\\\"DATA_4\\\" datafld=\\\"SYS_DATETIME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_64\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_64\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正申请书</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">&nbsp;<img name=\\\"DATA_66\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"转正申请书\\\" id=\\\"DATA_66\\\" width=\\\"50\\\" height=\\\"50\\\"/><span style=\\\"font-size: 16px; font-family: 等线;\\\">提交时间：</span></span><input name=\\\"DATA_10\\\" title=\\\"提交时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_10\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><br/></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">征求党内外群众意见会议记录</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_67\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"征求党内外群众意见会议记录\\\" id=\\\"DATA_67\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_13\\\" title=\\\"征求党内外群众意见会议记录日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_13\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"></span><span style=\\\"font-size: 16px; font-family: 等线;\\\">拟转正公示</span></span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_68\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟转正公示\\\" id=\\\"DATA_68\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"拟转正公示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 等线; font-size: 16px;\\\">拟转正公示结论<br/></span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_14\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"拟转正公示结论文件\\\" id=\\\"DATA_14\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_19\\\" title=\\\"拟转正公示结论日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_19\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正表决票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_17\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"转正表决票文件\\\" id=\\\"DATA_16\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" title=\\\"转正表决票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\"></span></p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正表决汇总票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_20\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"转正表决汇总票\\\" id=\\\"DATA_20\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_29\\\" title=\\\"转正表决汇总票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_29\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"></span><span style=\\\"font-size: 16px; font-family: 等线;\\\">支部大会会议记录</span><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; background-color: transparent;\\\"></span></span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_22\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"支部大会会议记录\\\" id=\\\"DATA_22\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_31\\\" title=\\\"支部大会会议记录日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_31\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">支部大会会议决议</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><img name=\\\"DATA_24\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"支部大会会议决议文件\\\" id=\\\"DATA_24\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_32\\\" title=\\\"支部大会会议决议日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_32\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></p></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正审批请示</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_40\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"转正审批请示\\\" id=\\\"DATA_40\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_41\\\" title=\\\"转正审批请示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_41\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">转正支部大会时间</span></td><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_74\\\" title=\\\"转正支部大会时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_74\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"\\\" orgfontsize=\\\"\\\" isnow=\\\"1\\\" style=\\\"width:150px;\\\"/></td><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">支部书记签字</span></td><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_73\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_73\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\">上级党委审批意见</td><td valign=\\\"middle\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><img name=\\\"DATA_75\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委审批意见\\\" id=\\\"DATA_75\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_76\\\" title=\\\"审批时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_76\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_78\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"签名\\\" id=\\\"DATA_78\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p><p></p><p><br/></p>', 0, '', '', 78, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE  `flow_form_type` SET `FORM_NAME` = '" + formName + "', `PRINT_MODEL` = '<p style=\\\"text-align: center; line-height: 4em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 36px;\\\"></span></p><p style=\\\"text-align:center;line-height:32px\\\"><span style=\\\"font-size:24px\\\">预备党员转正</span></p><p></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 950px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">预备党员姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_62\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"预备党员姓名\\\" value=\\\"\\\" id=\\\"DATA_62\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">接收预备党员时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_4\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"接收预备党员时间\\\" id=\\\"DATA_4\\\" datafld=\\\"SYS_DATETIME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_64\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_64\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正申请书</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">&nbsp;<img name=\\\"DATA_66\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"转正申请书\\\" id=\\\"DATA_66\\\" width=\\\"50\\\" height=\\\"50\\\"/><span style=\\\"font-size: 16px; font-family: 等线;\\\">提交时间：</span></span><input name=\\\"DATA_10\\\" title=\\\"提交时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_10\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><br/></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">征求党内外群众意见会议记录</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_67\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"征求党内外群众意见会议记录\\\" id=\\\"DATA_67\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_13\\\" title=\\\"征求党内外群众意见会议记录日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_13\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"></span><span style=\\\"font-size: 16px; font-family: 等线;\\\">拟转正公示</span></span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_68\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟转正公示\\\" id=\\\"DATA_68\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"拟转正公示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 等线; font-size: 16px;\\\">拟转正公示结论<br/></span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_14\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"拟转正公示结论文件\\\" id=\\\"DATA_14\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_19\\\" title=\\\"拟转正公示结论日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_19\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正表决票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_17\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"转正表决票文件\\\" id=\\\"DATA_16\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" title=\\\"转正表决票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\"></span></p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正表决汇总票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_20\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"转正表决汇总票\\\" id=\\\"DATA_20\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_29\\\" title=\\\"转正表决汇总票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_29\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"></span><span style=\\\"font-size: 16px; font-family: 等线;\\\">支部大会会议记录</span><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; background-color: transparent;\\\"></span></span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_22\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"支部大会会议记录\\\" id=\\\"DATA_22\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_31\\\" title=\\\"支部大会会议记录日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_31\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">支部大会会议决议</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><img name=\\\"DATA_24\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"支部大会会议决议文件\\\" id=\\\"DATA_24\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_32\\\" title=\\\"支部大会会议决议日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_32\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></p></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正审批请示</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_40\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"转正审批请示\\\" id=\\\"DATA_40\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_41\\\" title=\\\"转正审批请示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_41\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">转正支部大会时间</span></td><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_74\\\" title=\\\"转正支部大会时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_74\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"\\\" orgfontsize=\\\"\\\" isnow=\\\"1\\\" style=\\\"width:150px;\\\"/></td><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">支部书记签字</span></td><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_73\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_73\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\">上级党委审批意见</td><td valign=\\\"middle\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><img name=\\\"DATA_75\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委审批意见\\\" id=\\\"DATA_75\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_76\\\" title=\\\"审批时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_76\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_78\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"签名\\\" id=\\\"DATA_78\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p><p></p><p><br/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"text-align: center; line-height: 4em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 36px;\\\"></span></p><p style=\\\"text-align:center;line-height:32px\\\"><span style=\\\"font-size:24px\\\">预备党员转正</span></p><p></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 950px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">预备党员姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_62\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"预备党员姓名\\\" value=\\\"\\\" id=\\\"DATA_62\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">接收预备党员时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_4\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"接收预备党员时间\\\" id=\\\"DATA_4\\\" datafld=\\\"SYS_DATETIME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_64\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_64\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_7\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 200px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正申请书</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">&nbsp;<img name=\\\"DATA_66\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"转正申请书\\\" id=\\\"DATA_66\\\" width=\\\"50\\\" height=\\\"50\\\"/><span style=\\\"font-size: 16px; font-family: 等线;\\\">提交时间：</span></span><input name=\\\"DATA_10\\\" title=\\\"提交时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_10\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><br/></p></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">征求党内外群众意见会议记录</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_67\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"征求党内外群众意见会议记录\\\" id=\\\"DATA_67\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_13\\\" title=\\\"征求党内外群众意见会议记录日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_13\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"></span><span style=\\\"font-size: 16px; font-family: 等线;\\\">拟转正公示</span></span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_68\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"拟转正公示\\\" id=\\\"DATA_68\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_16\\\" title=\\\"拟转正公示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_16\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 等线; font-size: 16px;\\\">拟转正公示结论<br/></span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_14\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"拟转正公示结论文件\\\" id=\\\"DATA_14\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_19\\\" title=\\\"拟转正公示结论日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_19\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正表决票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_17\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"转正表决票文件\\\" id=\\\"DATA_16\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_27\\\" title=\\\"转正表决票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\"></span></p><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正表决汇总票</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_20\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"转正表决汇总票\\\" id=\\\"DATA_20\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_29\\\" title=\\\"转正表决汇总票日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_29\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><p style=\\\"text-align:center;line-height:27px\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\"></span><span style=\\\"font-size: 16px; font-family: 等线;\\\">支部大会会议记录</span><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; background-color: transparent;\\\"></span></span></p></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><img name=\\\"DATA_22\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"支部大会会议记录\\\" id=\\\"DATA_22\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_31\\\" title=\\\"支部大会会议记录日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_31\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">支部大会会议决议</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\"><p><img name=\\\"DATA_24\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer;\\\" title=\\\"支部大会会议决议文件\\\" id=\\\"DATA_24\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_32\\\" title=\\\"支部大会会议决议日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_32\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/></p></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">转正审批请示</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><img name=\\\"DATA_40\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"转正审批请示\\\" id=\\\"DATA_40\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_41\\\" title=\\\"转正审批请示日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_41\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">转正支部大会时间</span></td><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_74\\\" title=\\\"转正支部大会时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_74\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"\\\" orgfontsize=\\\"\\\" isnow=\\\"1\\\" style=\\\"width:150px;\\\"/></td><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px; text-align: -webkit-center; white-space: normal;\\\">支部书记签字</span></td><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_73\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_73\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"200\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 200px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\">上级党委审批意见</td><td valign=\\\"middle\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"left\\\"><img name=\\\"DATA_75\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"上级党委审批意见\\\" id=\\\"DATA_75\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_76\\\" title=\\\"审批时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_76\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"200\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:200px;height:30px;font-size:16px;\\\"/><input name=\\\"DATA_78\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"签名\\\" id=\\\"DATA_78\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"/></td></tr></tbody></table><p><br/></p><p></p><p><br/></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 78, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '" + formId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO  `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 36, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', '', '', '', '', '', 1, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', '1', NULL, '1', 0, '0', NULL, '0', '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE  `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = '" + flowSortId + "', `AUTO_NAME` = '', `AUTO_NUM` = 36, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = '', `ATTACHMENT_NAME` = '', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 1, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = '1', `TO_NOTIFY_YN` = NULL, `document_layout` = '1', `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = '0', `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 1, 0, '支部书记', '', '转正申请书,提交时间,征求党内外群众意见会议记录,征求党内外群众意见会议记录日期,拟转正公示,拟转正公示日期,拟转正公示结论文件,拟转正公示结论日期,转正表决票文件,转正表决票日期,转正表决汇总票,转正表决汇总票日期,支部大会会议记录,支部大会会议记录日期,支部大会会议决议文件,支部大会会议决议日期,转正审批请示,转正审批请示日期,转正支部大会时间,支部书记签字', '', '转正申请书,提交时间,征求党内外群众意见会议记录,征求党内外群众意见会议记录日期,拟转正公示,拟转正公示日期,拟转正公示结论文件,拟转正公示结论日期,转正表决票文件,转正表决票日期,转正表决汇总票,转正表决汇总票日期,支部大会会议记录,支部大会会议记录日期,支部大会会议决议文件,支部大会会议决议日期,转正审批请示,转正审批请示日期,转正支部大会时间,支部书记签字,', 'ALL_DEPT', '', '2,', 128, 127, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_66\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_67\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_68\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_14\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_17\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_20\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_22\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_24\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_40\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]},{\\\"FILE_PRIV_DATA_75\\\":[]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO  `flow_process`(`FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 2, 0, '党群部', '', '上级党委审批意见,审批时间,签名', '', '上级党委审批意见,审批时间,审批意见,审批,', 'ALL_DEPT', '', '3,', 355, 164, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '1', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 1, '[{\\\"FILE_PRIV_DATA_66\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_67\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_68\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_14\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_17\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_20\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_22\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_24\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_40\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_75\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, '0', 0, '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO  `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 3, 0, '支部书记', '', '', '', '', 'ALL_DEPT', '', '0,', 655, 191, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_66\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_67\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_68\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_14\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_17\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_20\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_22\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_24\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_40\\\":[\\\"1\\\"]},{\\\"FILE_PRIV_DATA_75\\\":[\\\"1\\\"]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO  `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '" + flowId + "', '预备党员转正', '预备党员转正', 'party_member', '', 0, '转正申请书=>ATT_URL1,征求党内外群众意见会议记录=>ATT_URL2,拟转正公示=>ATT_URL3,拟转正公示结论文件=>ATT_URL4,转正表决票文件=>ATT_URL5,转正表决汇总票=>ATT_URL6,支部大会会议记录=>ATT_URL7,支部大会会议决议文件=>ATT_URL8,转正审批请示=>ATT_URL9,上级党委审批意见=>ATT_URL,审批意见=>APPROVAL,审批时间=>STATE_TIME', '', '', '1', 200, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO  `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '预备党员转正', '" + flowId + "', 3, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("REGULAR", flowId);

                /*
                 * 需要更新的工作流
                 */
                formName = "培养联系人变更";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO `flow_form_type`(`FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '" + formName + "', '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">培养联系人变更</span><br/></p><p><span style=\\\"font-size:24px;font-family:等线\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_25\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_25\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"center\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定培养联系人时间</span>&nbsp; &nbsp;</td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"left\\\"><input name=\\\"DATA_27\\\" title=\\\"确定培养联系人时间  \\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_39\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_39\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称&nbsp;</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_40\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_40\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size:16px;font-family:等线\\\">现培养联系人姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\"><textarea name=\\\"DATA_59\\\" id=\\\"DATA_59\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"现培养联系人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea>&nbsp; &nbsp;</td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新培养联系人姓名</span></td><td rowspan=\\\"1\\\" valign=\\\"top\\\" align=\\\"null\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_72\\\" id=\\\"DATA_72\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"新培养联系人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">培养联系人变更理由</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_74\\\" id=\\\"DATA_74\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"培养联系人变更理由 \\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width:300px;height:80px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">培养联系人变</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">更表</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">附件</span>：<img name=\\\"DATA_55\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"附件\\\" id=\\\"DATA_55\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"> 时间</span>：<input name=\\\"DATA_56\\\" title=\\\"时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_56\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\">&nbsp; &nbsp; &nbsp;<br/><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">现支部书记签字</span><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\">：</span></span></p><p><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\"><br/></span></span></p></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_82\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"现支部书记签字\\\" id=\\\"DATA_82\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"white-space: normal; font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新支部书记签字</span><span style=\\\"white-space: normal; font-family: 等线; font-size: 16px;\\\">：</span></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_79\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"新支部书记签字\\\" id=\\\"DATA_79\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">支部书记审批</span></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<select name=\\\"DATA_83\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_83\\\" title=\\\"审批意见\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"同意\\\">同意</option><option value=\\\"不同意\\\">不同意</option></select></p><p>审批意见<textarea name=\\\"DATA_84\\\" id=\\\"DATA_84\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"审批\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width: 427px; height: 81px; margin: 0px;\\\"></textarea></p></td></tr></tbody></table><p>&nbsp;</p><p><input name=\\\"DATA_69\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"CONTACTS_CHANGE\\\" value=\\\"CONTACTS_CHANGE\\\" id=\\\"DATA_69\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"></span></p>', '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">培养联系人变更</span><br/></p><p><span style=\\\"font-size:24px;font-family:等线\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_25\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_25\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"center\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定培养联系人时间</span>&nbsp; &nbsp;</td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"left\\\"><input name=\\\"DATA_27\\\" title=\\\"确定培养联系人时间  \\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_39\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_39\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称&nbsp;</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_40\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_40\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size:16px;font-family:等线\\\">现培养联系人姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\"><textarea name=\\\"DATA_59\\\" id=\\\"DATA_59\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"现培养联系人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea>&nbsp; &nbsp;</td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新培养联系人姓名</span></td><td rowspan=\\\"1\\\" valign=\\\"top\\\" align=\\\"null\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_72\\\" id=\\\"DATA_72\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"新培养联系人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">培养联系人变更理由</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_74\\\" id=\\\"DATA_74\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"培养联系人变更理由 \\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width:300px;height:80px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">培养联系人变</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">更表</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">附件</span>：<img name=\\\"DATA_55\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"附件\\\" id=\\\"DATA_55\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"> 时间</span>：<input name=\\\"DATA_56\\\" title=\\\"时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_56\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\">&nbsp; &nbsp; &nbsp;<br/><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">现支部书记签字</span><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\">：</span></span></p><p><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\"><br/></span></span></p></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_82\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"现支部书记签字\\\" id=\\\"DATA_82\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"white-space: normal; font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新支部书记签字</span><span style=\\\"white-space: normal; font-family: 等线; font-size: 16px;\\\">：</span></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_79\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"新支部书记签字\\\" id=\\\"DATA_79\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">支部书记审批</span></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<select name=\\\"DATA_83\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_83\\\" title=\\\"审批意见\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"同意\\\">同意</option><option value=\\\"不同意\\\">不同意</option></select></p><p>审批意见<textarea name=\\\"DATA_84\\\" id=\\\"DATA_84\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"审批\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width: 427px; height: 81px; margin: 0px;\\\"></textarea></p></td></tr></tbody></table><p>&nbsp;</p><p><input name=\\\"DATA_69\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"CONTACTS_CHANGE\\\" value=\\\"CONTACTS_CHANGE\\\" id=\\\"DATA_69\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"></span></p>', 0, '', '', 84, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE `flow_form_type` SET `FORM_NAME` = '" + formName + "', `PRINT_MODEL` = '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">培养联系人变更</span><br/></p><p><span style=\\\"font-size:24px;font-family:等线\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_25\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_25\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"center\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定培养联系人时间</span>&nbsp; &nbsp;</td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"left\\\"><input name=\\\"DATA_27\\\" title=\\\"确定培养联系人时间  \\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_39\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_39\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称&nbsp;</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_40\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_40\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size:16px;font-family:等线\\\">现培养联系人姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\"><textarea name=\\\"DATA_59\\\" id=\\\"DATA_59\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"现培养联系人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea>&nbsp; &nbsp;</td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新培养联系人姓名</span></td><td rowspan=\\\"1\\\" valign=\\\"top\\\" align=\\\"null\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_72\\\" id=\\\"DATA_72\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"新培养联系人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">培养联系人变更理由</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_74\\\" id=\\\"DATA_74\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"培养联系人变更理由 \\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width:300px;height:80px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">培养联系人变</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">更表</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">附件</span>：<img name=\\\"DATA_55\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"附件\\\" id=\\\"DATA_55\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"> 时间</span>：<input name=\\\"DATA_56\\\" title=\\\"时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_56\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\">&nbsp; &nbsp; &nbsp;<br/><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">现支部书记签字</span><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\">：</span></span></p><p><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\"><br/></span></span></p></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_82\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"现支部书记签字\\\" id=\\\"DATA_82\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"white-space: normal; font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新支部书记签字</span><span style=\\\"white-space: normal; font-family: 等线; font-size: 16px;\\\">：</span></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_79\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"新支部书记签字\\\" id=\\\"DATA_79\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">支部书记审批</span></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<select name=\\\"DATA_83\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_83\\\" title=\\\"审批意见\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"同意\\\">同意</option><option value=\\\"不同意\\\">不同意</option></select></p><p>审批意见<textarea name=\\\"DATA_84\\\" id=\\\"DATA_84\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"审批\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width: 427px; height: 81px; margin: 0px;\\\"></textarea></p></td></tr></tbody></table><p>&nbsp;</p><p><input name=\\\"DATA_69\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"CONTACTS_CHANGE\\\" value=\\\"CONTACTS_CHANGE\\\" id=\\\"DATA_69\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"></span></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">培养联系人变更</span><br/></p><p><span style=\\\"font-size:24px;font-family:等线\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_25\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_25\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"center\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定培养联系人时间</span>&nbsp; &nbsp;</td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"left\\\"><input name=\\\"DATA_27\\\" title=\\\"确定培养联系人时间  \\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_39\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_39\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称&nbsp;</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_40\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_40\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size:16px;font-family:等线\\\">现培养联系人姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\"><textarea name=\\\"DATA_59\\\" id=\\\"DATA_59\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"现培养联系人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea>&nbsp; &nbsp;</td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新培养联系人姓名</span></td><td rowspan=\\\"1\\\" valign=\\\"top\\\" align=\\\"null\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_72\\\" id=\\\"DATA_72\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"新培养联系人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">培养联系人变更理由</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_74\\\" id=\\\"DATA_74\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"培养联系人变更理由 \\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width:300px;height:80px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">培养联系人变</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">更表</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">附件</span>：<img name=\\\"DATA_55\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"附件\\\" id=\\\"DATA_55\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"> 时间</span>：<input name=\\\"DATA_56\\\" title=\\\"时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_56\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\">&nbsp; &nbsp; &nbsp;<br/><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">现支部书记签字</span><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\">：</span></span></p><p><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\"><br/></span></span></p></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_82\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"现支部书记签字\\\" id=\\\"DATA_82\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"white-space: normal; font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新支部书记签字</span><span style=\\\"white-space: normal; font-family: 等线; font-size: 16px;\\\">：</span></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_79\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item \\\" data-type=\\\"macros\\\" title=\\\"新支部书记签字\\\" id=\\\"DATA_79\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">支部书记审批</span></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<select name=\\\"DATA_83\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_83\\\" title=\\\"审批意见\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"同意\\\">同意</option><option value=\\\"不同意\\\">不同意</option></select></p><p>审批意见<textarea name=\\\"DATA_84\\\" id=\\\"DATA_84\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"审批\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width: 427px; height: 81px; margin: 0px;\\\"></textarea></p></td></tr></tbody></table><p>&nbsp;</p><p><input name=\\\"DATA_69\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"CONTACTS_CHANGE\\\" value=\\\"CONTACTS_CHANGE\\\" id=\\\"DATA_69\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"></span></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 84, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '" + formId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 0, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', '', '', '', '', '', 1, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', NULL, NULL, NULL, 0, '0', NULL, NULL, '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = '" + flowSortId + "', `AUTO_NAME` = '', `AUTO_NUM` = 0, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = '', `ATTACHMENT_NAME` = '', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 1, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = NULL, `TO_NOTIFY_YN` = NULL, `document_layout` = NULL, `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = NULL, `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `WORKINGDAYS_TYPE`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 1, 0, '现支部书记', '', '新培养联系人姓名,培养联系人变更理由 ,附件,时间,现支部书记签字', '', '新培养联系人姓名,培养联系人变更理由 ,附件,时间,现支部书记签字,', '', '', '2,', 231, 258, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_55\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, 0, NULL, '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `WORKINGDAYS_TYPE`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 2, 0, '新支部书记书记', '', '新支部书记签字,审批意见,审批', '', '新支部书记签字,审批意见,审批,', '', '', '0,', 475, 261, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 1, '[{\\\"FILE_PRIV_DATA_55\\\":[\\\"4\\\",\\\"1\\\"]}]', '[]', 0, 0, 0, '0', '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '" + flowId + "', '培养联系人变更', '培养联系人变更', 'party_member', '', 0, '\\r\\n新培养联系人姓名=>DEVELOP_CONTACTS,附件=>ATT_URL1,CONTACTS_CHANGE=>CONTACTS_CHANGE,审批意见=>APPROVAL', '', '', '1', 250, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '培养联系人变更', '" + flowId + "', 2, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("DEVELOP_CONTACTS", flowId);

                /*
                 * 需要更新的工作流
                 */
                formName = "入党介绍人变更";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO `flow_form_type`( `FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '" + formName + "', '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">入党介绍人变更流程及表单</span><br/></p><p><span style=\\\"font-size:24px;font-family:等线\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_25\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_25\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"center\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定入党介绍人时间&nbsp;</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"> &nbsp;</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"> &nbsp; &nbsp; &nbsp;</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"left\\\"><input name=\\\"DATA_27\\\" title=\\\"确定培养联系人时间  \\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">（部门）</span>&nbsp;&nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_39\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_39\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_40\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_40\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">现入党</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">介绍人姓</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\"><textarea name=\\\"DATA_58\\\" id=\\\"DATA_58\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"现入党介绍人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新入党介绍人姓名</span></td><td rowspan=\\\"1\\\" valign=\\\"top\\\" align=\\\"null\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_66\\\" id=\\\"DATA_66\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"新入党介绍人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer; background: url(&quot;/img/workflow/form/user_select.png&quot;) right center no-repeat rgb(255, 255, 255); height: 30px; width: 150px; font-size: 16px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">入党介绍人变更理由</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_68\\\" id=\\\"DATA_68\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"入党介绍人变更理由\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width:300px;height:80px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">入党介绍人变更表</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\">附件：<img name=\\\"DATA_55\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"附件\\\" id=\\\"DATA_55\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 时间：<input name=\\\"DATA_56\\\" title=\\\"时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_56\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\">&nbsp; &nbsp; &nbsp;<br/><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">现支部书记签字</span><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\">：</span></span></p><p><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\"><br/></span></span></p></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_71\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"现支部书记签字\\\" id=\\\"DATA_71\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"font-family: 等线; font-size: 16px; white-space: normal; background-color: rgb(237, 245, 250);\\\">&nbsp; </span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新支部书记签字：</span><span style=\\\"font-family: 等线; font-size: 16px; white-space: normal; background-color: rgb(237, 245, 250);\\\"></span></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_74\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"新\\\" id=\\\"DATA_74\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">支部书记审批</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<select name=\\\"DATA_76\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_76\\\" title=\\\"审批意见\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"同意\\\">同意</option><option value=\\\"不同意\\\">不同意</option></select></p><p>审批意见<textarea name=\\\"DATA_77\\\" id=\\\"DATA_77\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"审批\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width:300px;height:80px;\\\"></textarea></p></td></tr></tbody></table><p><br/></p><p><input name=\\\"DATA_62\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"PARTY_INTRODUCER\\\" value=\\\"PARTY_INTRODUCER\\\" id=\\\"DATA_62\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></p>', '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">入党介绍人变更流程及表单</span><br/></p><p><span style=\\\"font-size:24px;font-family:等线\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_25\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_25\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"center\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定入党介绍人时间&nbsp;</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"> &nbsp;</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"> &nbsp; &nbsp; &nbsp;</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"left\\\"><input name=\\\"DATA_27\\\" title=\\\"确定培养联系人时间  \\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">（部门）</span>&nbsp;&nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_39\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_39\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_40\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_40\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">现入党</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">介绍人姓</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\"><textarea name=\\\"DATA_58\\\" id=\\\"DATA_58\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"现入党介绍人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新入党介绍人姓名</span></td><td rowspan=\\\"1\\\" valign=\\\"top\\\" align=\\\"null\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_66\\\" id=\\\"DATA_66\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"新入党介绍人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer; background: url(&quot;/img/workflow/form/user_select.png&quot;) right center no-repeat rgb(255, 255, 255); height: 30px; width: 150px; font-size: 16px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">入党介绍人变更理由</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_68\\\" id=\\\"DATA_68\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"入党介绍人变更理由\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width:300px;height:80px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">入党介绍人变更表</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\">附件：<img name=\\\"DATA_55\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"附件\\\" id=\\\"DATA_55\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 时间：<input name=\\\"DATA_56\\\" title=\\\"时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_56\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\">&nbsp; &nbsp; &nbsp;<br/><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">现支部书记签字</span><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\">：</span></span></p><p><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\"><br/></span></span></p></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_71\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"现支部书记签字\\\" id=\\\"DATA_71\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"font-family: 等线; font-size: 16px; white-space: normal; background-color: rgb(237, 245, 250);\\\">&nbsp; </span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新支部书记签字：</span><span style=\\\"font-family: 等线; font-size: 16px; white-space: normal; background-color: rgb(237, 245, 250);\\\"></span></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_74\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"新\\\" id=\\\"DATA_74\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">支部书记审批</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<select name=\\\"DATA_76\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_76\\\" title=\\\"审批意见\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"同意\\\">同意</option><option value=\\\"不同意\\\">不同意</option></select></p><p>审批意见<textarea name=\\\"DATA_77\\\" id=\\\"DATA_77\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"审批\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width:300px;height:80px;\\\"></textarea></p></td></tr></tbody></table><p><br/></p><p><input name=\\\"DATA_62\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"PARTY_INTRODUCER\\\" value=\\\"PARTY_INTRODUCER\\\" id=\\\"DATA_62\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></p>', 0, '', '', 77, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE `flow_form_type` SET `FORM_NAME` = '" + formName + "', `PRINT_MODEL` = '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">入党介绍人变更流程及表单</span><br/></p><p><span style=\\\"font-size:24px;font-family:等线\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_25\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_25\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"center\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定入党介绍人时间&nbsp;</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"> &nbsp;</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"> &nbsp; &nbsp; &nbsp;</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"left\\\"><input name=\\\"DATA_27\\\" title=\\\"确定培养联系人时间  \\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">（部门）</span>&nbsp;&nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_39\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_39\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_40\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_40\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">现入党</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">介绍人姓</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\"><textarea name=\\\"DATA_58\\\" id=\\\"DATA_58\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"现入党介绍人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新入党介绍人姓名</span></td><td rowspan=\\\"1\\\" valign=\\\"top\\\" align=\\\"null\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_66\\\" id=\\\"DATA_66\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"新入党介绍人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer; background: url(&quot;/img/workflow/form/user_select.png&quot;) right center no-repeat rgb(255, 255, 255); height: 30px; width: 150px; font-size: 16px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">入党介绍人变更理由</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_68\\\" id=\\\"DATA_68\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"入党介绍人变更理由\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width:300px;height:80px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">入党介绍人变更表</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\">附件：<img name=\\\"DATA_55\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"附件\\\" id=\\\"DATA_55\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 时间：<input name=\\\"DATA_56\\\" title=\\\"时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_56\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\">&nbsp; &nbsp; &nbsp;<br/><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">现支部书记签字</span><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\">：</span></span></p><p><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\"><br/></span></span></p></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_71\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"现支部书记签字\\\" id=\\\"DATA_71\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"font-family: 等线; font-size: 16px; white-space: normal; background-color: rgb(237, 245, 250);\\\">&nbsp; </span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新支部书记签字：</span><span style=\\\"font-family: 等线; font-size: 16px; white-space: normal; background-color: rgb(237, 245, 250);\\\"></span></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_74\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"新\\\" id=\\\"DATA_74\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">支部书记审批</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<select name=\\\"DATA_76\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_76\\\" title=\\\"审批意见\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"同意\\\">同意</option><option value=\\\"不同意\\\">不同意</option></select></p><p>审批意见<textarea name=\\\"DATA_77\\\" id=\\\"DATA_77\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"审批\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width:300px;height:80px;\\\"></textarea></p></td></tr></tbody></table><p><br/></p><p><input name=\\\"DATA_62\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"PARTY_INTRODUCER\\\" value=\\\"PARTY_INTRODUCER\\\" id=\\\"DATA_62\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">入党介绍人变更流程及表单</span><br/></p><p><span style=\\\"font-size:24px;font-family:等线\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_25\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_25\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"center\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定入党介绍人时间&nbsp;</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"> &nbsp;</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\"> &nbsp; &nbsp; &nbsp;</span></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"left\\\"><input name=\\\"DATA_27\\\" title=\\\"确定培养联系人时间  \\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_27\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">（部门）</span>&nbsp;&nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_39\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_39\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_40\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_40\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">现入党</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">介绍人姓</span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\"><textarea name=\\\"DATA_58\\\" id=\\\"DATA_58\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"现入党介绍人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer;background: #fff url(/img/workflow/form/user_select.png) no-repeat right;height:30px;width:150px;font-size:16px;\\\"></textarea></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新入党介绍人姓名</span></td><td rowspan=\\\"1\\\" valign=\\\"top\\\" align=\\\"null\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_66\\\" id=\\\"DATA_66\\\" class=\\\"form_item userselect\\\" data-type=\\\"userselect\\\" title=\\\"新入党介绍人姓名\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"cursor: pointer; background: url(&quot;/img/workflow/form/user_select.png&quot;) right center no-repeat rgb(255, 255, 255); height: 30px; width: 150px; font-size: 16px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">入党介绍人变更理由</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><textarea name=\\\"DATA_68\\\" id=\\\"DATA_68\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"入党介绍人变更理由\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width:300px;height:80px;\\\"></textarea></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">入党介绍人变更表</span></td><td valign=\\\"top\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\">附件：<img name=\\\"DATA_55\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"附件\\\" id=\\\"DATA_55\\\" width=\\\"50\\\" height=\\\"50\\\"/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 时间：<input name=\\\"DATA_56\\\" title=\\\"时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_56\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\">&nbsp; &nbsp; &nbsp;<br/><p><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">现支部书记签字</span><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\">：</span></span></p><p><span style=\\\";font-family:等线;font-size:16px\\\"><span style=\\\"font-family:等线\\\"><br/></span></span></p></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_71\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"现支部书记签字\\\" id=\\\"DATA_71\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><span style=\\\"font-family: 等线; font-size: 16px; white-space: normal; background-color: rgb(237, 245, 250);\\\">&nbsp; </span><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">新支部书记签字：</span><span style=\\\"font-family: 等线; font-size: 16px; white-space: normal; background-color: rgb(237, 245, 250);\\\"></span></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-width: 1px; border-style: solid;\\\"><input name=\\\"DATA_74\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"新\\\" id=\\\"DATA_74\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" align=\\\"center\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">支部书记审批</span></td><td valign=\\\"middle\\\" rowspan=\\\"1\\\" colspan=\\\"3\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0); border-left-width: 1px; border-top-width: 1px;\\\"><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<select name=\\\"DATA_76\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_76\\\" title=\\\"审批意见\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"同意\\\">同意</option><option value=\\\"不同意\\\">不同意</option></select></p><p>审批意见<textarea name=\\\"DATA_77\\\" id=\\\"DATA_77\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"审批\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width:300px;height:80px;\\\"></textarea></p></td></tr></tbody></table><p><br/></p><p><input name=\\\"DATA_62\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"PARTY_INTRODUCER\\\" value=\\\"PARTY_INTRODUCER\\\" id=\\\"DATA_62\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 77, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '" + formId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 10, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', '', '', '', '', '', 1, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', NULL, NULL, NULL, 0, '0', NULL, NULL, '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = '" + flowSortId + "', `AUTO_NAME` = '', `AUTO_NUM` = 10, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = '', `ATTACHMENT_NAME` = '', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 1, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = NULL, `TO_NOTIFY_YN` = NULL, `document_layout` = NULL, `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = NULL, `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `WORKINGDAYS_TYPE`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 1, 0, '现支部书记', '', '新入党介绍人姓名,入党介绍人变更理由,附件,时间,现支部书记签字', '', '新入党介绍人姓名,入党介绍人变更理由,附件,时间,现支部书记签字,', '', '', '2,', 223, 222, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_55\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, 0, NULL, '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `WORKINGDAYS_TYPE`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 2, 0, '新支部书记书记', 'admin,', '新,审批意见,审批', '', '新,审批意见,审批,', '', '', '0,', 370, 233, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 1, '[{\\\"FILE_PRIV_DATA_55\\\":[\\\"4\\\",\\\"1\\\"]}]', '[]', 0, 0, 0, '0', '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '" + flowId + "', '入党介绍人变更', '入党介绍人变更', 'party_member', '', 0, '新入党介绍人姓名=>RECOMMEND_PERSON,附件=>ATT_URL1,PARTY_INTRODUCER=>PARTY_INTRODUCER,审批意见=>APPROVAL', '', '', '1', 260, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO `flow_trigger`(`NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '入党介绍人变更', '" + flowId + "', 2, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("RECOMMEND_PERSON", flowId);

                /*
                 * 需要更新的工作流
                 */
                formName = "选择发展阶段";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO `flow_form_type`( `FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ('选择发展阶段', '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family:微软雅黑, Microsoft YaHei\\\"><span style=\\\"font-size: 24px;\\\">选择发展阶段</span></span></p><p></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"姓名\\\" id=\\\"DATA_2\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">发展阶段</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><select name=\\\"DATA_3\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_3\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"0\\\">申请入党</option><option value=\\\"2\\\">积极分子</option><option value=\\\"3\\\">发展对象</option><option value=\\\"4\\\">预备党员(未接收)</option><option value=\\\"5\\\">预备党员(已接收)</option><option value=\\\"6\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">性别</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" title=\\\"性别\\\" type=\\\"radio\\\" checked=\\\"checked\\\" radio_field=\\\"男`女`\\\" orgchecked=\\\"\\\" classname=\\\"radio\\\" class=\\\"form_item\\\" data-type=\\\"radio\\\" id=\\\"DATA_6\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">出生日期</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_8\\\" title=\\\"出生日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">民族</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_9\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"民族\\\" value=\\\"\\\" id=\\\"DATA_9\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">职务</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_12\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"职务\\\" value=\\\"\\\" id=\\\"DATA_12\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">单位（部门）</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_29\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"部门\\\" id=\\\"DATA_29\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_30\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"党支部\\\" id=\\\"DATA_30\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; text-align: -webkit-center; white-space: normal;\\\">提交时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" title=\\\"提交时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_7\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支部书记签字</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_10\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_10\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; text-align: -webkit-center; white-space: normal;\\\">支部书记审批</span></td><td valign=\\\"top\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<select name=\\\"DATA_34\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_34\\\" title=\\\"审批意见\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"同意\\\">同意</option><option value=\\\"不同意\\\">不同意</option></select><br/>审批意见<textarea name=\\\"DATA_35\\\" id=\\\"DATA_35\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"审批\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width: 471px; height: 87px; margin: 0px;\\\"></textarea></td></tr></tbody></table><p style=\\\"text-align: center;\\\"><input name=\\\"DATA_32\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"触发器判断标识\\\" value=\\\"selectPhase\\\" id=\\\"DATA_32\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/></p>', '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family:微软雅黑, Microsoft YaHei\\\"><span style=\\\"font-size: 24px;\\\">选择发展阶段</span></span></p><p></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"姓名\\\" id=\\\"DATA_2\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">发展阶段</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><select name=\\\"DATA_3\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_3\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"0\\\">申请入党</option><option value=\\\"2\\\">积极分子</option><option value=\\\"3\\\">发展对象</option><option value=\\\"4\\\">预备党员(未接收)</option><option value=\\\"5\\\">预备党员(已接收)</option><option value=\\\"6\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">性别</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" title=\\\"性别\\\" type=\\\"radio\\\" checked=\\\"checked\\\" radio_field=\\\"男`女`\\\" orgchecked=\\\"\\\" classname=\\\"radio\\\" class=\\\"form_item\\\" data-type=\\\"radio\\\" id=\\\"DATA_6\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">出生日期</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_8\\\" title=\\\"出生日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">民族</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_9\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"民族\\\" value=\\\"\\\" id=\\\"DATA_9\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">职务</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_12\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"职务\\\" value=\\\"\\\" id=\\\"DATA_12\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">单位（部门）</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_29\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"部门\\\" id=\\\"DATA_29\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_30\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"党支部\\\" id=\\\"DATA_30\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; text-align: -webkit-center; white-space: normal;\\\">提交时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" title=\\\"提交时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_7\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支部书记签字</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_10\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_10\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; text-align: -webkit-center; white-space: normal;\\\">支部书记审批</span></td><td valign=\\\"top\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<select name=\\\"DATA_34\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_34\\\" title=\\\"审批意见\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"同意\\\">同意</option><option value=\\\"不同意\\\">不同意</option></select><br/>审批意见<textarea name=\\\"DATA_35\\\" id=\\\"DATA_35\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"审批\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width: 471px; height: 87px; margin: 0px;\\\"></textarea></td></tr></tbody></table><p style=\\\"text-align: center;\\\"><input name=\\\"DATA_32\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"触发器判断标识\\\" value=\\\"selectPhase\\\" id=\\\"DATA_32\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/></p>', 0, '', '', 35, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE `flow_form_type` SET `FORM_NAME` = '" + formName + "', `PRINT_MODEL` = '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family:微软雅黑, Microsoft YaHei\\\"><span style=\\\"font-size: 24px;\\\">选择发展阶段</span></span></p><p></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"姓名\\\" id=\\\"DATA_2\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">发展阶段</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><select name=\\\"DATA_3\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_3\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"0\\\">申请入党</option><option value=\\\"2\\\">积极分子</option><option value=\\\"3\\\">发展对象</option><option value=\\\"4\\\">预备党员(未接收)</option><option value=\\\"5\\\">预备党员(已接收)</option><option value=\\\"6\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">性别</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" title=\\\"性别\\\" type=\\\"radio\\\" checked=\\\"checked\\\" radio_field=\\\"男`女`\\\" orgchecked=\\\"\\\" classname=\\\"radio\\\" class=\\\"form_item\\\" data-type=\\\"radio\\\" id=\\\"DATA_6\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">出生日期</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_8\\\" title=\\\"出生日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">民族</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_9\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"民族\\\" value=\\\"\\\" id=\\\"DATA_9\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">职务</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_12\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"职务\\\" value=\\\"\\\" id=\\\"DATA_12\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">单位（部门）</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_29\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"部门\\\" id=\\\"DATA_29\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_30\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"党支部\\\" id=\\\"DATA_30\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; text-align: -webkit-center; white-space: normal;\\\">提交时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" title=\\\"提交时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_7\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支部书记签字</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_10\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_10\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; text-align: -webkit-center; white-space: normal;\\\">支部书记审批</span></td><td valign=\\\"top\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<select name=\\\"DATA_34\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_34\\\" title=\\\"审批意见\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"同意\\\">同意</option><option value=\\\"不同意\\\">不同意</option></select><br/>审批意见<textarea name=\\\"DATA_35\\\" id=\\\"DATA_35\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"审批\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width: 471px; height: 87px; margin: 0px;\\\"></textarea></td></tr></tbody></table><p style=\\\"text-align: center;\\\"><input name=\\\"DATA_32\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"触发器判断标识\\\" value=\\\"selectPhase\\\" id=\\\"DATA_32\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"text-align: center; line-height: 3em;\\\"><span style=\\\"font-family:微软雅黑, Microsoft YaHei\\\"><span style=\\\"font-size: 24px;\\\">选择发展阶段</span></span></p><p></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">姓名</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"姓名\\\" id=\\\"DATA_2\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgfontsize=\\\"16\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" style=\\\"font-size: 16px; width: 150px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">发展阶段</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><select name=\\\"DATA_3\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_3\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"0\\\">申请入党</option><option value=\\\"2\\\">积极分子</option><option value=\\\"3\\\">发展对象</option><option value=\\\"4\\\">预备党员(未接收)</option><option value=\\\"5\\\">预备党员(已接收)</option><option value=\\\"6\\\">正式党员</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">性别</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" title=\\\"性别\\\" type=\\\"radio\\\" checked=\\\"checked\\\" radio_field=\\\"男`女`\\\" orgchecked=\\\"\\\" classname=\\\"radio\\\" class=\\\"form_item\\\" data-type=\\\"radio\\\" id=\\\"DATA_6\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">出生日期</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_8\\\" title=\\\"出生日期\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"0\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">民族</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_9\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"民族\\\" value=\\\"\\\" id=\\\"DATA_9\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"font-size: 16px; text-align: left; height: 30px; width: 150px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">职务</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_12\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"职务\\\" value=\\\"\\\" id=\\\"DATA_12\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">单位（部门）</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_29\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"部门\\\" id=\\\"DATA_29\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">所属党支部</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_30\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"党支部\\\" id=\\\"DATA_30\\\" datafld=\\\"SYS_DEPTNAME\\\" orgsql=\\\"\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; text-align: -webkit-center; white-space: normal;\\\">提交时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_7\\\" title=\\\"提交时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_7\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;\\\">支部书记签字</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_10\\\" type=\\\"text\\\" value=\\\"{macros}\\\" class=\\\"AUTO  form_item\\\" data-type=\\\"macros\\\" title=\\\"支部书记签字\\\" id=\\\"DATA_10\\\" datafld=\\\"SYS_USERNAME\\\" orgsql=\\\"\\\" orgsignimg=\\\"0\\\" orgsqllist=\\\"\\\" orghidden=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px; font-size: 16px; height: 30px;\\\" orgfontsize=\\\"16\\\" orgheight=\\\"30\\\"/></td></tr><tr><td valign=\\\"middle\\\" colspan=\\\"1\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px; text-align: -webkit-center; white-space: normal;\\\">支部书记审批</span></td><td valign=\\\"top\\\" colspan=\\\"3\\\" rowspan=\\\"1\\\" style=\\\"border-color: rgb(0, 0, 0);\\\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<select name=\\\"DATA_34\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_34\\\" title=\\\"审批意见\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"同意\\\">同意</option><option value=\\\"不同意\\\">不同意</option></select><br/>审批意见<textarea name=\\\"DATA_35\\\" id=\\\"DATA_35\\\" class=\\\"form_item\\\" data-type=\\\"textarea\\\" title=\\\"审批\\\" value=\\\"\\\" rich=\\\"0\\\" orgfontsize=\\\"\\\" orgwidth=\\\"300\\\" orgheight=\\\"80\\\" style=\\\"width: 471px; height: 87px; margin: 0px;\\\"></textarea></td></tr></tbody></table><p style=\\\"text-align: center;\\\"><input name=\\\"DATA_32\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"触发器判断标识\\\" value=\\\"selectPhase\\\" id=\\\"DATA_32\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 35, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '" + formId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 40, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', '', '', '', '', '', 1, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', '1', NULL, '1', 0, '0', NULL, NULL, '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = '" + flowSortId + "', `AUTO_NAME` = '', `AUTO_NUM` = 40, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = '', `ATTACHMENT_NAME` = '', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 1, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = '1', `TO_NOTIFY_YN` = NULL, `document_layout` = '1', `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = NULL, `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `WORKINGDAYS_TYPE`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 1, 0, '步骤1', '', '提交时间', '', '提交时间,', '', '1,', '2,', 244, 269, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[]', '[]', 0, 0, 0, NULL, '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `WORKINGDAYS_TYPE`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 2, 0, '步骤2', '', '支部书记签字,审批意见,审批', '', '支部书记签字,审批意见,审批,', '', '1,', '0,', 452, 284, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 1, '[]', '[]', 0, 0, 0, '0', '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '" + flowId + "', '选择发展阶段', '选择发展阶段', 'party_member', '', 0, '触发器判断标识=>SELECT_PHASE,发展阶段=>PHASE,审批意见=>APPROVAL', '', '', '1', 240, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '选择发展阶段', '" + flowId + "', 2, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("SELECT_PHASE", flowId);

                /*
                 * 需要更新的工作流
                 */
                formName = "入党积极分子培养教育考察提交";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO `flow_form_type`( `FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '" + formName + "', '<p style=\\\"margin-bottom: 8px; text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">入党积极分子培养教育考察</span></p><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">积极分子姓名</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"积极分子姓名\\\" value=\\\"\\\" id=\\\"DATA_2\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定积极分子时间</span>&nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_3\\\" title=\\\"确定积极分子时间 \\\" class=\\\"form_item\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span>&nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_6\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" width=\\\"178\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">积极分子考察记录表</span><br/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" colspan=\\\"3\\\"><img name=\\\"DATA_21\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"积极分子考察记录表\\\" id=\\\"DATA_21\\\" width=\\\"50\\\" height=\\\"50\\\"/></td></tr></tbody></table><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span><br/></p><p><br/></p>', '<p style=\\\"margin-bottom: 8px; text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">入党积极分子培养教育考察</span></p><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">积极分子姓名</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"积极分子姓名\\\" value=\\\"\\\" id=\\\"DATA_2\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定积极分子时间</span>&nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_3\\\" title=\\\"确定积极分子时间 \\\" class=\\\"form_item\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span>&nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_6\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" width=\\\"178\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">积极分子考察记录表</span><br/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" colspan=\\\"3\\\"><img name=\\\"DATA_21\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"积极分子考察记录表\\\" id=\\\"DATA_21\\\" width=\\\"50\\\" height=\\\"50\\\"/></td></tr></tbody></table><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span><br/></p><p><br/></p>', 0, '', '', 21, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE `flow_form_type` SET `FORM_NAME` = '" + formName + "', `PRINT_MODEL` = '<p style=\\\"margin-bottom: 8px; text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">入党积极分子培养教育考察</span></p><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">积极分子姓名</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"积极分子姓名\\\" value=\\\"\\\" id=\\\"DATA_2\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定积极分子时间</span>&nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_3\\\" title=\\\"确定积极分子时间 \\\" class=\\\"form_item\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span>&nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_6\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" width=\\\"178\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">积极分子考察记录表</span><br/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" colspan=\\\"3\\\"><img name=\\\"DATA_21\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"积极分子考察记录表\\\" id=\\\"DATA_21\\\" width=\\\"50\\\" height=\\\"50\\\"/></td></tr></tbody></table><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span><br/></p><p><br/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"margin-bottom: 8px; text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">入党积极分子培养教育考察</span></p><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">积极分子姓名</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"积极分子姓名\\\" value=\\\"\\\" id=\\\"DATA_2\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">确定积极分子时间</span>&nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_3\\\" title=\\\"确定积极分子时间 \\\" class=\\\"form_item\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span>&nbsp;</td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_6\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" width=\\\"178\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">积极分子考察记录表</span><br/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" colspan=\\\"3\\\"><img name=\\\"DATA_21\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"积极分子考察记录表\\\" id=\\\"DATA_21\\\" width=\\\"50\\\" height=\\\"50\\\"/></td></tr></tbody></table><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span><br/></p><p><br/></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 21, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '" + formId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 1, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', '', '', '', '', '', 0, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', NULL, NULL, NULL, 0, '0', NULL, NULL, '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = '" + flowSortId + "', `AUTO_NAME` = '', `AUTO_NUM` = 1, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = '', `ATTACHMENT_NAME` = '', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 0, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = NULL, `TO_NOTIFY_YN` = NULL, `document_layout` = NULL, `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = NULL, `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `WORKINGDAYS_TYPE`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 1, 0, '步骤1', '', '积极分子考察记录表', '', '预备党员考察记录表,', '', '', '0,', 186, 248, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_21\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, 0, NULL, '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '" + flowId + "', '入党积极分子培养教育考察提交', '入党介绍人变更', 'party_member', '', 0, '积极分子考察记录表=>ATT_URL1', '', '', '1', 280, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '入党积极分子培养教育考察提交', '" + flowId + "', 1, 'TURN', 'BEFORE_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("ACTIVIST_REPROT", flowId);

                /*
                 * 需要更新的工作流
                 */
                formName = "预备党员培养教育考察提交";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO `flow_form_type`( `FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '" + formName + "', '<p style=\\\"margin-bottom: 8px; text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">预备党员培养教育考察</span></p><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">预备党员姓名</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"预备党员姓名\\\" value=\\\"\\\" id=\\\"DATA_2\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">接收预备党员时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_3\\\" title=\\\"接收预备党员时间\\\" class=\\\"form_item\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_6\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" width=\\\"178\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">预备党员考察记录表</span><br/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" colspan=\\\"3\\\"><img name=\\\"DATA_15\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"预备党员考察记录表\\\" id=\\\"DATA_15\\\" width=\\\"50\\\" height=\\\"50\\\"/></td></tr></tbody></table><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span><br/></p><p><br/></p>', '<p style=\\\"margin-bottom: 8px; text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">预备党员培养教育考察</span></p><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">预备党员姓名</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"预备党员姓名\\\" value=\\\"\\\" id=\\\"DATA_2\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">接收预备党员时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_3\\\" title=\\\"接收预备党员时间\\\" class=\\\"form_item\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_6\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" width=\\\"178\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">预备党员考察记录表</span><br/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" colspan=\\\"3\\\"><img name=\\\"DATA_15\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"预备党员考察记录表\\\" id=\\\"DATA_15\\\" width=\\\"50\\\" height=\\\"50\\\"/></td></tr></tbody></table><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span><br/></p><p><br/></p>', 0, '', '', 15, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE `flow_form_type` SET `FORM_NAME` = '" + formName + "', `PRINT_MODEL` = '<p style=\\\"margin-bottom: 8px; text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">预备党员培养教育考察</span></p><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">预备党员姓名</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"预备党员姓名\\\" value=\\\"\\\" id=\\\"DATA_2\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">接收预备党员时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_3\\\" title=\\\"接收预备党员时间\\\" class=\\\"form_item\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_6\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" width=\\\"178\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">预备党员考察记录表</span><br/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" colspan=\\\"3\\\"><img name=\\\"DATA_15\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"预备党员考察记录表\\\" id=\\\"DATA_15\\\" width=\\\"50\\\" height=\\\"50\\\"/></td></tr></tbody></table><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span><br/></p><p><br/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"margin-bottom: 8px; text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">预备党员培养教育考察</span></p><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">预备党员姓名</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"预备党员姓名\\\" value=\\\"\\\" id=\\\"DATA_2\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">接收预备党员时间</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_3\\\" title=\\\"接收预备党员时间\\\" class=\\\"form_item\\\" data-type=\\\"calendar\\\" id=\\\"DATA_3\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_6\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" width=\\\"178\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">预备党员考察记录表</span><br/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" colspan=\\\"3\\\"><img name=\\\"DATA_15\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"预备党员考察记录表\\\" id=\\\"DATA_15\\\" width=\\\"50\\\" height=\\\"50\\\"/></td></tr></tbody></table><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span><br/></p><p><br/></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 15, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '" + formId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '" + formName + "', '" + formId + "', '1', '1', '', 1, '" + flowSortId + "', '', 1, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', '', '', '', '', '', 0, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', NULL, NULL, NULL, 0, '0', NULL, NULL, '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE `flow_type` SET `FLOW_NAME` = '" + formName + "', `FORM_ID` = '" + formId + "', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` ='" + flowSortId + "' , `AUTO_NAME` = '', `AUTO_NUM` = 1, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = '', `ATTACHMENT_NAME` = '', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 0, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = NULL, `TO_NOTIFY_YN` = NULL, `document_layout` = NULL, `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = NULL, `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '" + flowId + "';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `WORKINGDAYS_TYPE`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '" + flowId + "', 1, 0, '步骤1', '', '预备党员考察记录表', '', '预备党员考察记录表,', 'ALL_DEPT', '', '0,', 297, 248, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_12\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, 0, NULL, '0', 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '" + flowId + "', '预备党员培育教育考察提交', '培养联系人变更', 'party_member', '', 0, '预备党员考察记录表=>ATT_URL1', '', '', '1', 270, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ('预备党员培育教育考察提交', '" + flowId + "', 1, 'TURN', 'BEFORE_FRONTEND', 0, 1, 1, '', '" + hookId + "', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("PROPARTY_REPORT", flowId);
                /*
                 * 需要更新的工作流
                 */
                formName = "思想汇报提交";
                formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                //如果表单为空需要新建一个
                if (StringUtils.checkNull(formId)) {
                    //新建表单
                    sql = "INSERT INTO `flow_form_type`( `FORM_NAME`, `PRINT_MODEL`, `PRINT_MODEL_SHORT`, `DEPT_ID`, `SCRIPT`, `CSS`, `ITEM_MAX`, `FORM_SORT`, `is_new`, `MOBILE_DATA_SORT`) VALUES ( '"+formName+"', '<p style=\\\"margin-bottom: 8px; text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">思想汇报提交</span></p><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">姓名</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_2\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\">发展阶段</td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><select name=\\\"DATA_13\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_13\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"积极分子\\\">积极分子</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_6\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" width=\\\"178\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">思想汇报</span><br/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" colspan=\\\"3\\\"><img name=\\\"DATA_7\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"思想汇报附件\\\" id=\\\"DATA_7\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_8\\\" title=\\\"思想汇报时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr></tbody></table><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span><input name=\\\"DATA_15\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"REPORT\\\" value=\\\"REPORT\\\" id=\\\"DATA_15\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/></p><p><br/></p>', '<p style=\\\"margin-bottom: 8px; text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">思想汇报提交</span></p><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">姓名</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_2\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\">发展阶段</td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><select name=\\\"DATA_13\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_13\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"积极分子\\\">积极分子</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_6\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" width=\\\"178\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">思想汇报</span><br/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" colspan=\\\"3\\\"><img name=\\\"DATA_7\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"思想汇报附件\\\" id=\\\"DATA_7\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_8\\\" title=\\\"思想汇报时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr></tbody></table><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span><input name=\\\"DATA_15\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"REPORT\\\" value=\\\"REPORT\\\" id=\\\"DATA_15\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/></p><p><br/></p>', 0, '', '', 15, '" + sortId + "', 0, NULL);\n";
                    st.executeUpdate(sql);//执行SQL语句
                    formId = Verification.CheckIsExistFlow_form_type1(conn, driver, url, username, password, formName);
                } else {
                    //更新表单
                    sql = "UPDATE `flow_form_type` SET `FORM_NAME` = '"+formName+"', `PRINT_MODEL` = '<p style=\\\"margin-bottom: 8px; text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">思想汇报提交</span></p><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">姓名</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_2\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\">发展阶段</td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><select name=\\\"DATA_13\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_13\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"积极分子\\\">积极分子</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_6\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" width=\\\"178\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">思想汇报</span><br/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" colspan=\\\"3\\\"><img name=\\\"DATA_7\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"思想汇报附件\\\" id=\\\"DATA_7\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_8\\\" title=\\\"思想汇报时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr></tbody></table><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span><input name=\\\"DATA_15\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"REPORT\\\" value=\\\"REPORT\\\" id=\\\"DATA_15\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/></p><p><br/></p>', `PRINT_MODEL_SHORT` = '<p style=\\\"margin-bottom: 8px; text-align: center; line-height: 3em;\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 24px;\\\">思想汇报提交</span></p><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span></p><table border=\\\"1\\\" width=\\\"100%\\\" class=\\\"td-min-height\\\" style=\\\"width: 801px; border: 1px solid rgb(128, 128, 128);\\\" data-sort=\\\"sortDisabled\\\" align=\\\"center\\\"><tbody><tr class=\\\"firstRow\\\"><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">姓名</span><br/></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_2\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"姓名\\\" value=\\\"\\\" id=\\\"DATA_2\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\">发展阶段</td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><select name=\\\"DATA_13\\\" class=\\\"form_item\\\" data-type=\\\"select\\\" id=\\\"DATA_13\\\" title=\\\"发展阶段\\\" plugins=\\\"select\\\" size=\\\"1\\\" child=\\\"\\\" fieldflow=\\\"0\\\" orgwidth=\\\"150\\\" style=\\\"width: 150px;\\\"><option value=\\\"积极分子\\\">积极分子</option></select></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">单位（部门）</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_5\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"单位（部门）\\\" value=\\\"\\\" id=\\\"DATA_5\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\"><span style=\\\"font-size: 16px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;\\\">所属党支部名称</span></td><td valign=\\\"top\\\" style=\\\"border-color: rgb(0, 0, 0);\\\"><input name=\\\"DATA_6\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"所属党支部名称\\\" value=\\\"\\\" id=\\\"DATA_6\\\" orgfontsize=\\\"16\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"30\\\" orghidden=\\\"0\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px; font-size: 16px; height: 30px;\\\"/></td></tr><tr><td valign=\\\"middle\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" align=\\\"center\\\" rowspan=\\\"1\\\" colspan=\\\"1\\\" width=\\\"178\\\"><span style=\\\"font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 16px;\\\">思想汇报</span><br/></td><td rowspan=\\\"1\\\" valign=\\\"middle\\\" align=\\\"left\\\" style=\\\"border-color: rgb(0, 0, 0);\\\" colspan=\\\"3\\\"><img name=\\\"DATA_7\\\" src=\\\"/img/fileupload.png\\\" class=\\\"form_item fileupload\\\" data-type=\\\"fileupload\\\" style=\\\"cursor: pointer; margin: 0 5px;\\\" align=\\\"absmiddle\\\" title=\\\"思想汇报附件\\\" id=\\\"DATA_7\\\" width=\\\"50\\\" height=\\\"50\\\"/><input name=\\\"DATA_8\\\" title=\\\"思想汇报时间\\\" class=\\\"form_item laydate-icon\\\" data-type=\\\"calendar\\\" id=\\\"DATA_8\\\" value=\\\"YYYY-MM-DD\\\" date_format=\\\"YYYY-MM-DD\\\" gwidth=\\\"150\\\" gheight=\\\"30\\\" orgfontsize=\\\"16\\\" isnow=\\\"1\\\" style=\\\"width:150px;height:30px;font-size:16px;\\\"/></td></tr></tbody></table><p style=\\\"margin-bottom: 8px;\\\"><span style=\\\"font-size:24px\\\"></span><input name=\\\"DATA_15\\\" class=\\\"form_item\\\" data-type=\\\"text\\\" type=\\\"text\\\" title=\\\"REPORT\\\" value=\\\"REPORT\\\" id=\\\"DATA_15\\\" orgfontsize=\\\"\\\" orgalign=\\\"left\\\" orgwidth=\\\"150\\\" orgheight=\\\"\\\" orghidden=\\\"1\\\" align=\\\"left\\\" style=\\\"text-align: left; width: 150px;\\\"/></p><p><br/></p>', `DEPT_ID` = 0, `SCRIPT` = '', `CSS` = '', `ITEM_MAX` = 15, `FORM_SORT` = '" + sortId + "', `is_new` = 0, `MOBILE_DATA_SORT` = NULL WHERE `FORM_ID` = '"+formId+"';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //更新工作流
                flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                //如果工作流为空需要新建一个
                if (StringUtils.checkNull(flowId)) {
                    sql = "INSERT INTO `flow_type`( `FLOW_NAME`, `FORM_ID`, `FLOW_DOC`, `FLOW_TYPE`, `MANAGE_USER`, `FLOW_NO`, `FLOW_SORT`, `AUTO_NAME`, `AUTO_NUM`, `AUTO_LEN`, `QUERY_USER`, `FLOW_DESC`, `AUTO_EDIT`, `NEW_USER`, `QUERY_ITEM`, `COMMENT_PRIV`, `DEPT_ID`, `FREE_PRESET`, `FREE_OTHER`, `QUERY_USER_DEPT`, `MANAGE_USER_DEPT`, `EDIT_PRIV`, `LIST_FLDS_STR`, `ALLOW_PRE_SET`, `FORCE_PRE_SET`, `MODEL_ID`, `MODEL_NAME`, `ATTACHMENT_ID`, `ATTACHMENT_NAME`, `VIEW_USER`, `VIEW_DEPT`, `VIEW_ROLE`, `VIEW_PRIV`, `IS_VERSION`, `FLOW_ACTION`, `AUTO_NUM_YEAR`, `AUTO_NUM_MONTH`, `AUTO_NUM_TIME`, `NEW_TYPE`, `MOBILE_NEW_TYPE`, `document_flag`, `TO_NOTIFY_YN`, `document_layout`, `TEMPLATE_ID`, `SYS_RULE_YN`, `QUERY_FIELD`, `QUERY_LIST_FIELD`, `QUERY_NEW_YN`, `GROUP_USER_YN`) VALUES ( '"+formName+"', '"+formId+"', '1', '1', '', 1, '" + flowSortId + "', '', 11, 0, '', '', '1', '', '', '3', 0, '0', '2', '', '', '', '', '0', '0', '', '', '', '', '', '', '', 1, 0, NULL, 0, 0, '2000-01-01 00:00:00', '0,1', '1', NULL, NULL, NULL, 0, '0', NULL, NULL, '0', '0');\n";
                    st.executeUpdate(sql);//执行SQL语句
                    flowId = Verification.CheckIsExistFlow_type_id(conn, driver, url, username, password, formName);
                } else {
                    sql = "UPDATE `flow_type` SET `FLOW_NAME` = '"+formName+"', `FORM_ID` = '"+formId+"', `FLOW_DOC` = '1', `FLOW_TYPE` = '1', `MANAGE_USER` = '', `FLOW_NO` = 1, `FLOW_SORT` = 325, `AUTO_NAME` = '', `AUTO_NUM` = 11, `AUTO_LEN` = 0, `QUERY_USER` = '', `FLOW_DESC` = '', `AUTO_EDIT` = '1', `NEW_USER` = '', `QUERY_ITEM` = '', `COMMENT_PRIV` = '3', `DEPT_ID` = 0, `FREE_PRESET` = '0', `FREE_OTHER` = '2', `QUERY_USER_DEPT` = '', `MANAGE_USER_DEPT` = '', `EDIT_PRIV` = '', `LIST_FLDS_STR` = '', `ALLOW_PRE_SET` = '0', `FORCE_PRE_SET` = '0', `MODEL_ID` = '', `MODEL_NAME` = '', `ATTACHMENT_ID` = '', `ATTACHMENT_NAME` = '', `VIEW_USER` = '', `VIEW_DEPT` = '', `VIEW_ROLE` = '', `VIEW_PRIV` = 1, `IS_VERSION` = 0, `FLOW_ACTION` = NULL, `AUTO_NUM_YEAR` = 0, `AUTO_NUM_MONTH` = 0, `AUTO_NUM_TIME` = '2000-01-01 00:00:00', `NEW_TYPE` = '0,1', `MOBILE_NEW_TYPE` = '1', `document_flag` = NULL, `TO_NOTIFY_YN` = NULL, `document_layout` = NULL, `TEMPLATE_ID` = 0, `SYS_RULE_YN` = '0', `QUERY_FIELD` = NULL, `QUERY_LIST_FIELD` = NULL, `QUERY_NEW_YN` = '0', `GROUP_USER_YN` = '0' WHERE `FLOW_ID` = '"+flowId+"';\n";
                    st.executeUpdate(sql);//执行SQL语句
                }
                //需要删除的步骤表
                sql = "DELETE FROM flow_process WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增步骤表
                sql = "INSERT INTO `flow_process`(`FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ('"+flowId+"', 1, 0, '思想汇报提交', '', '思想汇报附件,思想汇报时间', '', '思想汇报附件,', 'ALL_DEPT', '', '2,', 238, 237, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '0', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_7\\\":[\\\"4\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\"]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n" +
                        "INSERT INTO `flow_process`( `FLOW_ID`, `PRCS_ID`, `PRCS_TYPE`, `PRCS_NAME`, `PRCS_USER`, `PRCS_ITEM`, `HIDDEN_ITEM`, `REQUIRED_ITEM`, `PRCS_DEPT`, `PRCS_PRIV`, `PRCS_TO`, `SET_LEFT`, `SET_TOP`, `PLUGIN`, `PLUGIN_SAVE`, `PRCS_ITEM_AUTO`, `PRCS_IN`, `PRCS_OUT`, `FEEDBACK`, `PRCS_IN_SET`, `PRCS_OUT_SET`, `AUTO_TYPE`, `AUTO_DEPT`, `AUTO_USER_OP`, `AUTO_USER`, `AUTO_USER_OP_RETURN`, `AUTO_USER_RETURN`, `USER_FILTER`, `USER_FILTER_PRCS_PRIV`, `USER_FILTER_PRCS_PRIV_OTHER`, `USER_FILTER_PRCS_DEPT`, `USER_FILTER_PRCS_DEPT_OTHER`, `TIME_OUT`, `TIME_OUT_MODIFY`, `TIME_OUT_ATTEND`, `SIGNLOOK`, `TOP_DEFAULT`, `USER_LOCK`, `MAIL_TO`, `MAIL_TO_DEPT`, `MAIL_TO_PRIV`, `SYNC_DEAL`, `SYNC_DEAL_CHECK`, `TURN_PRIV`, `CHILD_FLOW`, `GATHER_NODE`, `ALLOW_BACK`, `ATTACH_PRIV`, `AUTO_BASE_USER`, `CONDITION_DESC`, `RELATION_IN`, `RELATION_OUT`, `REMIND_FLAG`, `DISP_AIP`, `TIME_OUT_TYPE`, `ATTACH_EDIT_PRIV`, `ATTACH_EDIT_PRIV_ONLINE`, `ATTACH_MACRO_MARK`, `CONTROL_MODE`, `LIST_COLUMN_PRIV`, `VIEW_PRIV`, `FILEUPLOAD_PRIV`, `IMGUPLOAD_PRIV`, `SIGN_TYPE`, `COUNTERSIGN`, `WORKINGDAYS_TYPE`, `DOCUMENT_EDIT_PRIV`, `DOCUMENT_EDIT_PRIV_DETAIL`, `RELATION_ID`, `OPERATION_BUTTON`, `AUTO_ARCHIVE_SET`, `TIME_AUTO_TURN`, `RELATION_WORK_YN`, `NOMAIN_SIGNER_FILE_YN`, `TURN_CONTINUE_YN`, `PRCS_EXT_FLAG`, `COUNTERSIGN_AGAIN`, `PRE_PROCESS`, `PRESET_YN`) VALUES ( '"+flowId+"', 2, 0, '培养联系人/入党介绍人/支部书记', '', '', '', '', 'ALL_DEPT', '', '0,', 527, 286, '', '', '', '', '', '0', '', '', '0', '', '', '', '', '', '0', '', '', '', '', '', '0', '0', '0', '0', '1', '', '', '', '0', '', '1', 0, '0', '1', '', 0, '', '', '', 0, 0, '0', '1', '0', '0', '', '', 0, '[{\\\"FILE_PRIV_DATA_7\\\":[\\\"4\\\",\\\"1\\\"]}]', '[]', 0, 0, '0', 0, NULL, 0, '', '', '0', '0', '1', '0', NULL, '0', NULL, '1');\n";
                st.executeUpdate(sql);//执行SQL语句
                //删除业务引擎
                sql = "DELETE FROM flow_hook WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增业务引擎
                sql = "INSERT INTO `flow_hook`( `flow_id`, `hname`, `hdesc`, `hmodule`, `plugin`, `status`, `map`, `condition`, `condition_set`, `system`, `order_id`, `data_direction`) VALUES ( '"+flowId+"', '思想汇报', '思想汇报', 'party_member', '', 0, '思想汇报附件=>ATT_URL1,思想汇报时间=>REPORT_TIME,REPORT=>REPORT', '', '', '1', 290, 2);\n";
                st.executeUpdate(sql);//执行SQL语句
                hookId = Verification.CheckIsExistFlow_hook_id(conn, driver, url, username, password, "" + flowId);
                //删除旧触发器
                sql = "DELETE FROM flow_trigger WHERE FLOW_ID = " + flowId + ";";
                st.executeUpdate(sql);//执行SQL语句
                //新增新触发器
                sql = "INSERT INTO `flow_trigger`( `NAME`, `FLOW_ID`, `FLOW_PRCS`, `PLUGIN_TYPE`, `PLUGIN_WAY`, `PLUGIN`, `ACTIVED`, `SORT_ID`, `DESCRIPTION`, `BUSINESS_LOGIC_ID`, `ISGLOBAL`) VALUES ( '思想汇报提交', '"+flowId+"', 2, 'TURN', 'AFTER_FRONTEND', 0, 1, 1, '', '"+hookId+"', 0);\n";
                st.executeUpdate(sql);//执行SQL语句
                map.put("REPORT", flowId);

                sql = "DELETE FROM sys_para WHERE PARA_NAME = 'SET_PARTY_FLOW';";
                st.executeUpdate(sql);//执行SQL语句
                sql = "INSERT INTO `sys_para`(`PARA_NAME`, `PARA_VALUE`) VALUES ('SET_PARTY_FLOW', '" + JSONObject.toJSONString(map) + "');";
                st.executeUpdate(sql);//执行SQL语句
                toJson.setFlag(0);
                toJson.setMsg("初始化成功");
            } catch (Exception e) {
                e.printStackTrace();
                toJson.setMsg(e.getMessage());
            } finally {
                if (conn != null) {
                    conn.close();
                }
            }

        } catch (Exception e) {

        }

        return toJson;
    }


    /*
     * 给数据表增加新的列
     */
    public void addColum(Document document, List columns, String tableName) {
        List<String> list = HtmlUtil.getAllData(document);
        list.removeAll(columns);
        if (list.size() > 0) {//说明需要增加新的列
            HashMap hashMap = new HashMap();
            hashMap.put("tableName", tableName);
            hashMap.put("keys", list);
            workMapper.addcolumn(hashMap);
        }


    }


}
